#402E9E#402E9E
#402E9E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.8% C 0.172 H 282.6°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #402E9E |
|---|---|
| RGB | rgb(64, 46, 158) |
| HSL | hsl(250, 55%, 40%) |
| HSV | hsv(250, 71%, 62%) |
| CMYK | cmyk(59.5%, 70.9%, 0%, 38%) |
| CIE-LAB | lab(28.15, 39.79, -58.12) |
| CIE-LCH | lch(28.15, 70.43, 304.40°) |
| OKLab | oklab(39.78% 0.0375 -0.1674) |
| OKLCH | oklch(39.78% 0.172 282.6) |
| XYZ | xyz(9.2610, 5.5120, 32.9170) |
| Luminance | 0.0551 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.90
Sapphire (survey)
#2138AB
ΔE00 5.21
Blueberry
#464196
ΔE00 5.75
Darkslateblue
#483D8B
ΔE00 5.80
Ocean Blue
#4F42B5
ΔE00 6.24
Royal
#0C1793
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402E9E #8C9E2E
analogous
#2E549E #402E9E #782E9E
triadic
#402E9E #9E402E #2E9E40
tetradic
#402E9E #9E2E54 #8C9E2E #2E9E78
square
#402E9E #9E2E54 #8C9E2E #2E9E78
split-complementary
#402E9E #9E782E #549E2E
monochromatic
#1A123F #2D206F #402E9E #5741C8 #8171D6
Accessibility & contrast
On white
9.99
#402E9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#402E9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402E9E
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402E9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402E9E | 1.00 | 9.99 | 2.10 | 9.99 |
| #FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#044C62
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #402e9e; /* rgb */ color: rgb(64, 46, 158); /* oklch */ color: oklch(39.8% 0.172 282.6);
Tailwind
colors: {
custom: {
50: '#8068bc',
500: '#402e9e',
950: '#000000',
},
}SCSS
$custom: #402e9e; $custom-light: #8068bc; $custom-dark: #000000;
JSON
{
"hex": "#402e9e",
"rgb": {
"r": 64,
"g": 46,
"b": 158
},
"hsl": {
"h": 249.643,
"s": 54.902,
"l": 40
},
"oklch": {
"l": 0.39777,
"c": 0.17153,
"h": 282.6
},
"luminance": 0.05513
}Semantic roles & 50–950 ramp
primary
#402E9E
secondary
#B0BD6B
accent
#DE4AC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81