#402D9C#402D9C
#402D9C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.170 H 283.2°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).
Color values
| HEX | #402D9C |
|---|---|
| RGB | rgb(64, 45, 156) |
| HSL | hsl(250, 55%, 39%) |
| HSV | hsv(250, 71%, 61%) |
| CMYK | cmyk(59%, 71.2%, 0%, 38.8%) |
| CIE-LAB | lab(27.75, 39.73, -57.54) |
| CIE-LCH | lch(27.75, 69.93, 304.63°) |
| OKLab | oklab(39.44% 0.0387 -0.1657) |
| OKLCH | oklch(39.44% 0.17 283.2) |
| XYZ | xyz(9.0516, 5.3665, 32.0049) |
| Luminance | 0.0537 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.87
Sapphire (survey)
#2138AB
ΔE00 5.49
Darkslateblue
#483D8B
ΔE00 5.82
Blueberry
#464196
ΔE00 5.91
Ocean Blue
#4F42B5
ΔE00 6.58
Royal
#0C1793
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#402D9C #899C2D
analogous
#2D529C #402D9C #782D9C
triadic
#402D9C #9C402D #2D9C40
tetradic
#402D9C #9C2D52 #899C2D #2D9C78
square
#402D9C #9C2D52 #899C2D #2D9C78
split-complementary
#402D9C #9C782D #529C2D
monochromatic
#19123D #2D1F6D #402D9C #563FC8 #806ED5
Accessibility & contrast
On white
10.13
#402D9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.07
#402D9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #402D9C
10.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##402D9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##402D9C | 1.00 | 10.13 | 2.07 | 10.13 |
| #FFFFFF | 10.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#0A4B61
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #402d9c; /* rgb */ color: rgb(64, 45, 156); /* oklch */ color: oklch(39.4% 0.170 283.2);
Tailwind
colors: {
custom: {
50: '#7f68ba',
500: '#402d9c',
950: '#000000',
},
}SCSS
$custom: #402d9c; $custom-light: #7f68ba; $custom-dark: #000000;
JSON
{
"hex": "#402d9c",
"rgb": {
"r": 64,
"g": 45,
"b": 156
},
"hsl": {
"h": 250.27,
"s": 55.224,
"l": 39.412
},
"oklch": {
"l": 0.3944,
"c": 0.17015,
"h": 283.2
},
"luminance": 0.05367
}Semantic roles & 50–950 ramp
primary
#402D9C
secondary
#AEBC68
accent
#DF49C5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81