#402158 Color Information

In a RGB color space, hex #402158 is composed of 25.1% red, 12.9% green and 34.5% blue. Whereas in a CMYK color space, it is composed of 27.3% cyan, 62.5% magenta, 0% yellow and 65.5% black. It has a hue angle of 273.8 degrees, a saturation of 45.5% and a lightness of 23.7%. #402158 color hex could be obtained by blending #8042b0 with #000000. Closest websafe color is: #333366.

    • R 25
    • G 13
    • B 35
    RGB color chart
    • C 27
    • M 63
    • Y 0
    • K 65
    CMYK color chart

#402158 color description : Very dark violet.

#402158 Color Conversion

The hexadecimal color #402158 has RGB values of R:64, G:33, B:88 and CMYK values of C:0.27, M:0.63, Y:0, K:0.65. Its decimal value is 4202840.

Hex triplet 402158 #402158
RGB Decimal 64, 33, 88 rgb(64,33,88)
RGB Percent 25.1, 12.9, 34.5 rgb(25.1%,12.9%,34.5%)
CMYK 27, 63, 0, 65
HSL 273.8°, 45.5, 23.7 hsl(273.8,45.5%,23.7%)
HSV (or HSB) 273.8°, 62.5, 34.5
Web Safe 333366 #333366
CIE-LAB 19.566, 26.491, -27.557
XYZ 4.419, 2.882, 9.556
xyY 0.262, 0.171, 2.882
CIE-LCH 19.566, 38.225, 313.871
CIE-LUV 19.566, 8.593, -32.671
Hunter-Lab 16.978, 16.754, -21.486
Binary 01000000, 00100001, 01011000

Color Schemes with #402158

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

Alternatives to #402158

Below, you can see some colors close to #402158. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.

Similar Colors

#402158 Preview

Text with hexadecimal color #402158

This text has a font color of #402158.

<span style="color:#402158;">Text here</span>
#402158 background color

This paragraph has a background color of #402158.

<p style="background-color:#402158;">Content here</p>
#402158 border color

This element has a border color of #402158.

<div style="border:1px solid #402158;">Content here</div>
CSS codes
.text {color:#402158;}
.background {background-color:#402158;}
.border {border:1px solid #402158;}

Shades and Tints of #402158

A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #020102 is the darkest color, while #f7f3fb is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #402158

A tone is produced by adding gray to any pure hue. In this case, #3d3841 is the less saturated color, while #440079 is the most saturated one.

Tone Color Variation

Color Blindness Simulator

Below, you can see how #402158 is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.

Monochromacy
  • #313131 Achromatopsia 0.005% of the population
  • #342e39 Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #16386a Protanopia 1% of men
  • #213a5b Deuteranopia 1% of men
  • #42373b Tritanopia 0.001% of the population
Trichromacy
  • #252f64 Protanomaly 1% of men, 0.01% of women
  • #2c315a Deuteranomaly 6% of men, 0.4% of women
  • #412f45 Tritanomaly 0.01% of the population