#401F93#401F93
#401F93 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.174 H 287.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).
Color values
| HEX | #401F93 |
|---|---|
| RGB | rgb(64, 31, 147) |
| HSL | hsl(257, 65%, 35%) |
| HSV | hsv(257, 79%, 58%) |
| CMYK | cmyk(56.5%, 78.9%, 0%, 42.4%) |
| CIE-LAB | lab(24.25, 44.45, -57.78) |
| CIE-LCH | lch(24.25, 72.90, 307.57°) |
| OKLab | oklab(36.7% 0.0519 -0.1663) |
| OKLCH | oklch(36.7% 0.174 287.3) |
| XYZ | xyz(7.8692, 4.1761, 27.9895) |
| Luminance | 0.0418 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.30
Indigo (survey)
#380282
ΔE00 4.97
Royal
#0C1793
ΔE00 5.16
Indigo
#4B0082
ΔE00 5.37
Cobalt Blue
#030AA7
ΔE00 5.93
Ultramarine
#2000B1
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401F93 #72931F
analogous
#1F3893 #401F93 #7A1F93
triadic
#401F93 #93401F #1F9340
tetradic
#401F93 #931F38 #72931F #1F937A
square
#401F93 #931F38 #72931F #1F937A
split-complementary
#401F93 #937A1F #38931F
monochromatic
#140A2E #2A1460 #401F93 #562AC6 #7952DA
Accessibility & contrast
On white
11.44
#401F93 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#401F93 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401F93
11.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401F93 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401F93 | 1.00 | 11.44 | 1.84 | 11.44 |
| #FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#1B4058
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #401f93; /* rgb */ color: rgb(64, 31, 147); /* oklch */ color: oklch(36.7% 0.174 287.3);
Tailwind
colors: {
custom: {
50: '#7f5fb4',
500: '#401f93',
950: '#000000',
},
}SCSS
$custom: #401f93; $custom-light: #7f5fb4; $custom-dark: #000000;
JSON
{
"hex": "#401f93",
"rgb": {
"r": 64,
"g": 31,
"b": 147
},
"hsl": {
"h": 257.069,
"s": 65.169,
"l": 34.902
},
"oklch": {
"l": 0.36698,
"c": 0.17421,
"h": 287.3
},
"luminance": 0.04177
}Semantic roles & 50–950 ramp
primary
#401F93
secondary
#9FBE50
accent
#E840B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980