#401F91#401F91
#401F91 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.172 H 287.8°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).
Color values
| HEX | #401F91 |
|---|---|
| RGB | rgb(64, 31, 145) |
| HSL | hsl(257, 65%, 35%) |
| HSV | hsv(257, 79%, 57%) |
| CMYK | cmyk(55.9%, 78.6%, 0%, 43.1%) |
| CIE-LAB | lab(24.04, 43.87, -56.87) |
| CIE-LCH | lch(24.04, 71.83, 307.65°) |
| OKLab | oklab(36.5% 0.0525 -0.1636) |
| OKLCH | oklch(36.5% 0.172 287.8) |
| XYZ | xyz(7.7137, 4.1139, 27.1702) |
| Luminance | 0.0411 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 4.84
Royal
#0C1793
ΔE00 5.20
Indigo
#4B0082
ΔE00 5.22
Cobalt Blue
#030AA7
ΔE00 6.09
Ultramarine
#2000B1
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401F91 #70911F
analogous
#1F3791 #401F91 #791F91
triadic
#401F91 #91401F #1F9140
tetradic
#401F91 #911F37 #70911F #1F9179
square
#401F91 #911F37 #70911F #1F9179
split-complementary
#401F91 #91791F #37911F
monochromatic
#13092C #2A145F #401F91 #562AC3 #7851DA
Accessibility & contrast
On white
11.52
#401F91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#401F91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401F91
11.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401F91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401F91 | 1.00 | 11.52 | 1.82 | 11.52 |
| #FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00368F
Tritanopia (blue-blind)
#1E4057
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #401f91; /* rgb */ color: rgb(64, 31, 145); /* oklch */ color: oklch(36.5% 0.172 287.8);
Tailwind
colors: {
custom: {
50: '#7f5fb2',
500: '#401f91',
950: '#000000',
},
}SCSS
$custom: #401f91; $custom-light: #7f5fb2; $custom-dark: #000000;
JSON
{
"hex": "#401f91",
"rgb": {
"r": 64,
"g": 31,
"b": 145
},
"hsl": {
"h": 257.368,
"s": 64.773,
"l": 34.51
},
"oklch": {
"l": 0.36497,
"c": 0.17187,
"h": 287.8
},
"luminance": 0.04114
}Semantic roles & 50–950 ramp
primary
#401F91
secondary
#9DBD4F
accent
#E840B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980