#401E97#401E97
#401E97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.180 H 286.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).
Color values
| HEX | #401E97 |
|---|---|
| RGB | rgb(64, 30, 151) |
| HSL | hsl(257, 67%, 35%) |
| HSV | hsv(257, 80%, 59%) |
| CMYK | cmyk(57.6%, 80.1%, 0%, 40.8%) |
| CIE-LAB | lab(24.49, 46.08, -59.84) |
| CIE-LCH | lch(24.49, 75.53, 307.60°) |
| OKLab | oklab(36.99% 0.0514 -0.1723) |
| OKLCH | oklch(36.99% 0.18 286.6) |
| XYZ | xyz(8.1629, 4.2524, 29.6628) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.68
Royal
#0C1793
ΔE00 5.09
Indigo (survey)
#380282
ΔE00 5.13
Ultramarine
#2000B1
ΔE00 5.44
Indigo
#4B0082
ΔE00 5.55
Cobalt Blue
#030AA7
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401E97 #75971E
analogous
#1E3897 #401E97 #7D1E97
triadic
#401E97 #97401E #1E9740
tetradic
#401E97 #971E38 #75971E #1E977D
square
#401E97 #971E38 #75971E #1E977D
split-complementary
#401E97 #977D1E #38971E
monochromatic
#150A31 #2A1464 #401E97 #5628CA #7953DD
Accessibility & contrast
On white
11.35
#401E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#401E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401E97
11.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401E97 | 1.00 | 11.35 | 1.85 | 11.35 |
| #FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#16425A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #401e97; /* rgb */ color: rgb(64, 30, 151); /* oklch */ color: oklch(37.0% 0.180 286.6);
Tailwind
colors: {
custom: {
50: '#805fb7',
500: '#401e97',
950: '#000000',
},
}SCSS
$custom: #401e97; $custom-light: #805fb7; $custom-dark: #000000;
JSON
{
"hex": "#401e97",
"rgb": {
"r": 64,
"g": 30,
"b": 151
},
"hsl": {
"h": 256.86,
"s": 66.851,
"l": 35.49
},
"oklch": {
"l": 0.3699,
"c": 0.17982,
"h": 286.6
},
"luminance": 0.04253
}Semantic roles & 50–950 ramp
primary
#401E97
secondary
#A1C051
accent
#EA3EBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980