#401A90#401A90
#401A90 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.175 H 288.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #401A90 |
|---|---|
| RGB | rgb(64, 26, 144) |
| HSL | hsl(259, 69%, 33%) |
| HSV | hsv(259, 82%, 56%) |
| CMYK | cmyk(55.6%, 81.9%, 0%, 43.5%) |
| CIE-LAB | lab(23.14, 45.90, -57.74) |
| CIE-LCH | lch(23.14, 73.76, 308.48°) |
| OKLab | oklab(35.84% 0.0564 -0.1661) |
| OKLCH | oklch(35.84% 0.175 288.7) |
| XYZ | xyz(7.5163, 3.8420, 26.7257) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.97
Indigo
#4B0082
ΔE00 4.42
Indigo Blue
#3A18B1
ΔE00 4.65
Royal
#0C1793
ΔE00 5.10
Cobalt Blue
#030AA7
ΔE00 5.78
Ultramarine
#2000B1
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401A90 #6A901A
analogous
#1A2F90 #401A90 #7B1A90
triadic
#401A90 #90401A #1A9040
tetradic
#401A90 #901A2F #6A901A #1A907B
square
#401A90 #901A2F #6A901A #1A907B
split-complementary
#401A90 #907B1A #2F901A
monochromatic
#120728 #29115C #401A90 #5723C4 #7747DE
Accessibility & contrast
On white
11.88
#401A90 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#401A90 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401A90
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401A90 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401A90 | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#1F3D56
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #401a90; /* rgb */ color: rgb(64, 26, 144); /* oklch */ color: oklch(35.8% 0.175 288.7);
Tailwind
colors: {
custom: {
50: '#7f5cb2',
500: '#401a90',
950: '#000000',
},
}SCSS
$custom: #401a90; $custom-light: #7f5cb2; $custom-dark: #000000;
JSON
{
"hex": "#401a90",
"rgb": {
"r": 64,
"g": 26,
"b": 144
},
"hsl": {
"h": 259.322,
"s": 69.412,
"l": 33.333
},
"oklch": {
"l": 0.35839,
"c": 0.17543,
"h": 288.7
},
"luminance": 0.03842
}Semantic roles & 50–950 ramp
primary
#401A90
secondary
#98BF47
accent
#EC3CB3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980