#401D8C#401D8C
#401D8C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.168 H 289.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).
Color values
| HEX | #401D8C |
|---|---|
| RGB | rgb(64, 29, 140) |
| HSL | hsl(259, 66%, 33%) |
| HSV | hsv(259, 79%, 55%) |
| CMYK | cmyk(54.3%, 79.3%, 0%, 45.1%) |
| CIE-LAB | lab(23.21, 43.39, -55.14) |
| CIE-LCH | lch(23.21, 70.17, 308.20°) |
| OKLab | oklab(35.76% 0.0556 -0.1585) |
| OKLCH | oklch(35.76% 0.168 289.3) |
| XYZ | xyz(7.2860, 3.8618, 25.1674) |
| Luminance | 0.0386 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.21
Indigo
#4B0082
ΔE00 4.58
Indigo Blue
#3A18B1
ΔE00 5.30
Royal
#0C1793
ΔE00 5.33
Cobalt Blue
#030AA7
ΔE00 6.39
Ultramarine
#2000B1
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401D8C #698C1D
analogous
#1D318C #401D8C #771D8C
triadic
#401D8C #8C401D #1D8C40
tetradic
#401D8C #8C1D31 #698C1D #1D8C77
square
#401D8C #8C1D31 #698C1D #1D8C77
split-complementary
#401D8C #8C771D #318C1D
monochromatic
#120827 #291259 #401D8C #5728BF #774AD9
Accessibility & contrast
On white
11.85
#401D8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#401D8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401D8C
11.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401D8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401D8C | 1.00 | 11.85 | 1.77 | 11.85 |
| #FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#233D54
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #401d8c; /* rgb */ color: rgb(64, 29, 140); /* oklch */ color: oklch(35.8% 0.168 289.3);
Tailwind
colors: {
custom: {
50: '#7e5eaf',
500: '#401d8c',
950: '#000000',
},
}SCSS
$custom: #401d8c; $custom-light: #7e5eaf; $custom-dark: #000000;
JSON
{
"hex": "#401d8c",
"rgb": {
"r": 64,
"g": 29,
"b": 140
},
"hsl": {
"h": 258.919,
"s": 65.68,
"l": 33.137
},
"oklch": {
"l": 0.35762,
"c": 0.168,
"h": 289.3
},
"luminance": 0.03862
}Semantic roles & 50–950 ramp
primary
#401D8C
secondary
#98BC49
accent
#E93FB3
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0410
muted
#7C797F