#401F97#401F97
#401F97 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.179 H 286.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).
Color values
| HEX | #401F97 |
|---|---|
| RGB | rgb(64, 31, 151) |
| HSL | hsl(257, 66%, 36%) |
| HSV | hsv(257, 79%, 59%) |
| CMYK | cmyk(57.6%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(24.65, 45.61, -59.58) |
| CIE-LCH | lch(24.65, 75.03, 307.44°) |
| OKLab | oklab(37.1% 0.0507 -0.1715) |
| OKLCH | oklch(37.1% 0.179 286.5) |
| XYZ | xyz(8.1886, 4.3039, 29.6714) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.72
Royal
#0C1793
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 5.28
Ultramarine
#2000B1
ΔE00 5.56
Cobalt Blue
#030AA7
ΔE00 5.65
Indigo
#4B0082
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401F97 #76971F
analogous
#1F3A97 #401F97 #7C1F97
triadic
#401F97 #97401F #1F9740
tetradic
#401F97 #971F3A #76971F #1F977C
square
#401F97 #971F3A #76971F #1F977C
split-complementary
#401F97 #977C1F #3A971F
monochromatic
#150A31 #2A1564 #401F97 #5629CA #7A54DC
Accessibility & contrast
On white
11.29
#401F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#401F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401F97
11.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401F97 | 1.00 | 11.29 | 1.86 | 11.29 |
| #FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#16425B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #401f97; /* rgb */ color: rgb(64, 31, 151); /* oklch */ color: oklch(37.1% 0.179 286.5);
Tailwind
colors: {
custom: {
50: '#805fb7',
500: '#401f97',
950: '#000000',
},
}SCSS
$custom: #401f97; $custom-light: #805fb7; $custom-dark: #000000;
JSON
{
"hex": "#401f97",
"rgb": {
"r": 64,
"g": 31,
"b": 151
},
"hsl": {
"h": 256.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37103,
"c": 0.17889,
"h": 286.5
},
"luminance": 0.04304
}Semantic roles & 50–950 ramp
primary
#401F97
secondary
#A1BF52
accent
#E93FBA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980