#401B8E#401B8E
#401B8E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.172 H 289.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).
Color values
| HEX | #401B8E |
|---|---|
| RGB | rgb(64, 27, 142) |
| HSL | hsl(259, 68%, 33%) |
| HSV | hsv(259, 81%, 56%) |
| CMYK | cmyk(54.9%, 81%, 0%, 44.3%) |
| CIE-LAB | lab(23.09, 44.89, -56.58) |
| CIE-LCH | lch(23.09, 72.23, 308.43°) |
| OKLab | oklab(35.74% 0.0564 -0.1627) |
| OKLCH | oklch(35.74% 0.172 289.1) |
| XYZ | xyz(7.3873, 3.8265, 25.9353) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.98
Indigo
#4B0082
ΔE00 4.40
Indigo Blue
#3A18B1
ΔE00 4.96
Royal
#0C1793
ΔE00 5.19
Cobalt Blue
#030AA7
ΔE00 6.04
Ultramarine
#2000B1
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401B8E #698E1B
analogous
#1B308E #401B8E #791B8E
triadic
#401B8E #8E401B #1B8E40
tetradic
#401B8E #8E1B30 #698E1B #1B8E79
square
#401B8E #8E1B30 #698E1B #1B8E79
split-complementary
#401B8E #8E791B #308E1B
monochromatic
#120727 #29115B #401B8E #5725C1 #7747DC
Accessibility & contrast
On white
11.90
#401B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#401B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401B8E
11.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401B8E | 1.00 | 11.90 | 1.77 | 11.90 |
| #FFFFFF | 11.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#213D55
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #401b8e; /* rgb */ color: rgb(64, 27, 142); /* oklch */ color: oklch(35.7% 0.172 289.1);
Tailwind
colors: {
custom: {
50: '#7e5db0',
500: '#401b8e',
950: '#000000',
},
}SCSS
$custom: #401b8e; $custom-light: #7e5db0; $custom-dark: #000000;
JSON
{
"hex": "#401b8e",
"rgb": {
"r": 64,
"g": 27,
"b": 142
},
"hsl": {
"h": 259.304,
"s": 68.047,
"l": 33.137
},
"oklch": {
"l": 0.3574,
"c": 0.17224,
"h": 289.1
},
"luminance": 0.03827
}Semantic roles & 50–950 ramp
primary
#401B8E
secondary
#98BE47
accent
#EB3DB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980