#401B97#401B97
#401B97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.182 H 287.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).
Color values
| HEX | #401B97 |
|---|---|
| RGB | rgb(64, 27, 151) |
| HSL | hsl(258, 70%, 35%) |
| HSV | hsv(258, 82%, 59%) |
| CMYK | cmyk(57.6%, 82.1%, 0%, 40.8%) |
| CIE-LAB | lab(24.02, 47.43, -60.61) |
| CIE-LCH | lch(24.02, 76.96, 308.04°) |
| OKLab | oklab(36.67% 0.0533 -0.1745) |
| OKLCH | oklch(36.67% 0.182 287) |
| XYZ | xyz(8.0905, 4.1078, 29.6387) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 4.71
Royal
#0C1793
ΔE00 5.01
Ultramarine
#2000B1
ΔE00 5.14
Indigo
#4B0082
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 5.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401B97 #72971B
analogous
#1B3497 #401B97 #7E1B97
triadic
#401B97 #97401B #1B9740
tetradic
#401B97 #971B34 #72971B #1B977E
square
#401B97 #971B34 #72971B #1B977E
split-complementary
#401B97 #977E1B #34971B
monochromatic
#14082F #2A1263 #401B97 #5624CB #794DDF
Accessibility & contrast
On white
11.53
#401B97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#401B97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401B97
11.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401B97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401B97 | 1.00 | 11.53 | 1.82 | 11.53 |
| #FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#16405A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #401b97; /* rgb */ color: rgb(64, 27, 151); /* oklch */ color: oklch(36.7% 0.182 287.0);
Tailwind
colors: {
custom: {
50: '#805db7',
500: '#401b97',
950: '#000000',
},
}SCSS
$custom: #401b97; $custom-light: #805db7; $custom-dark: #000000;
JSON
{
"hex": "#401b97",
"rgb": {
"r": 64,
"g": 27,
"b": 151
},
"hsl": {
"h": 257.903,
"s": 69.663,
"l": 34.902
},
"oklch": {
"l": 0.36668,
"c": 0.18249,
"h": 287
},
"luminance": 0.04108
}Semantic roles & 50–950 ramp
primary
#401B97
secondary
#9FC14C
accent
#EC3BB8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980