#401C8F#401C8F
#401C8F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.172 H 288.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #401C8F |
|---|---|
| RGB | rgb(64, 28, 143) |
| HSL | hsl(259, 67%, 34%) |
| HSV | hsv(259, 80%, 56%) |
| CMYK | cmyk(55.2%, 80.4%, 0%, 43.9%) |
| CIE-LAB | lab(23.35, 44.72, -56.78) |
| CIE-LCH | lch(23.35, 72.27, 308.23°) |
| OKLab | oklab(35.95% 0.0553 -0.1633) |
| OKLCH | oklch(35.95% 0.172 288.7) |
| XYZ | xyz(7.4861, 3.9033, 26.3402) |
| Luminance | 0.0390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.20
Indigo
#4B0082
ΔE00 4.62
Indigo Blue
#3A18B1
ΔE00 4.82
Royal
#0C1793
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 6.01
Ultramarine
#2000B1
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401C8F #6B8F1C
analogous
#1C318F #401C8F #791C8F
triadic
#401C8F #8F401C #1C8F40
tetradic
#401C8F #8F1C31 #6B8F1C #1C8F79
square
#401C8F #8F1C31 #6B8F1C #1C8F79
split-complementary
#401C8F #8F791C #318F1C
monochromatic
#120829 #29125C #401C8F #5726C2 #774ADC
Accessibility & contrast
On white
11.79
#401C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#401C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401C8F
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401C8F | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#203D55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #401c8f; /* rgb */ color: rgb(64, 28, 143); /* oklch */ color: oklch(36.0% 0.172 288.7);
Tailwind
colors: {
custom: {
50: '#7e5db1',
500: '#401c8f',
950: '#000000',
},
}SCSS
$custom: #401c8f; $custom-light: #7e5db1; $custom-dark: #000000;
JSON
{
"hex": "#401c8f",
"rgb": {
"r": 64,
"g": 28,
"b": 143
},
"hsl": {
"h": 258.783,
"s": 67.251,
"l": 33.529
},
"oklch": {
"l": 0.35951,
"c": 0.17245,
"h": 288.7
},
"luminance": 0.03904
}Semantic roles & 50–950 ramp
primary
#401C8F
secondary
#99BE49
accent
#EA3EB4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980