#401C8A#401C8A
#401C8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.167 H 290.0°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).
Color values
| HEX | #401C8A |
|---|---|
| RGB | rgb(64, 28, 138) |
| HSL | hsl(260, 66%, 33%) |
| HSV | hsv(260, 80%, 54%) |
| CMYK | cmyk(53.6%, 79.7%, 0%, 45.9%) |
| CIE-LAB | lab(22.84, 43.30, -54.49) |
| CIE-LCH | lch(22.84, 69.60, 308.47°) |
| OKLab | oklab(35.45% 0.0569 -0.1566) |
| OKLCH | oklch(35.45% 0.167 290) |
| XYZ | xyz(7.1157, 3.7552, 24.3897) |
| Luminance | 0.0376 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.95
Indigo
#4B0082
ΔE00 4.30
Royal
#0C1793
ΔE00 5.42
Indigo Blue
#3A18B1
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 6.53
Midnight Blue
#191970
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401C8A #668A1C
analogous
#1C2F8A #401C8A #771C8A
triadic
#401C8A #8A401C #1C8A40
tetradic
#401C8A #8A1C2F #668A1C #1C8A77
square
#401C8A #8A1C2F #668A1C #1C8A77
split-complementary
#401C8A #8A771C #2F8A1C
monochromatic
#110724 #281257 #401C8A #5826BD #7747DA
Accessibility & contrast
On white
11.99
#401C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#401C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401C8A
11.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401C8A | 1.00 | 11.99 | 1.75 | 11.99 |
| #FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#243B53
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #401c8a; /* rgb */ color: rgb(64, 28, 138); /* oklch */ color: oklch(35.4% 0.167 290.0);
Tailwind
colors: {
custom: {
50: '#7e5dad',
500: '#401c8a',
950: '#000000',
},
}SCSS
$custom: #401c8a; $custom-light: #7e5dad; $custom-dark: #000000;
JSON
{
"hex": "#401c8a",
"rgb": {
"r": 64,
"g": 28,
"b": 138
},
"hsl": {
"h": 259.636,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.35448,
"c": 0.16666,
"h": 290
},
"luminance": 0.03755
}Semantic roles & 50–950 ramp
primary
#401C8A
secondary
#95BB46
accent
#E93FB1
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B0410
muted
#7C797F