#401F96#401F96
#401F96 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.178 H 286.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).
Color values
| HEX | #401F96 |
|---|---|
| RGB | rgb(64, 31, 150) |
| HSL | hsl(257, 66%, 35%) |
| HSV | hsv(257, 79%, 59%) |
| CMYK | cmyk(57.3%, 79.3%, 0%, 41.2%) |
| CIE-LAB | lab(24.55, 45.32, -59.13) |
| CIE-LCH | lch(24.55, 74.50, 307.47°) |
| OKLab | oklab(37% 0.051 -0.1702) |
| OKLCH | oklch(37% 0.178 286.7) |
| XYZ | xyz(8.1077, 4.2715, 29.2455) |
| Luminance | 0.0427 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.86
Royal
#0C1793
ΔE00 5.13
Indigo (survey)
#380282
ΔE00 5.20
Indigo
#4B0082
ΔE00 5.60
Ultramarine
#2000B1
ΔE00 5.65
Cobalt Blue
#030AA7
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401F96 #75961F
analogous
#1F3996 #401F96 #7C1F96
triadic
#401F96 #96401F #1F9640
tetradic
#401F96 #961F39 #75961F #1F967C
square
#401F96 #961F39 #75961F #1F967C
split-complementary
#401F96 #967C1F #39961F
monochromatic
#150A31 #2A1563 #401F96 #5629C9 #7954DC
Accessibility & contrast
On white
11.32
#401F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#401F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401F96
11.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401F96 | 1.00 | 11.32 | 1.85 | 11.32 |
| #FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#17425A
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #401f96; /* rgb */ color: rgb(64, 31, 150); /* oklch */ color: oklch(37.0% 0.178 286.7);
Tailwind
colors: {
custom: {
50: '#7f5fb6',
500: '#401f96',
950: '#000000',
},
}SCSS
$custom: #401f96; $custom-light: #7f5fb6; $custom-dark: #000000;
JSON
{
"hex": "#401f96",
"rgb": {
"r": 64,
"g": 31,
"b": 150
},
"hsl": {
"h": 256.639,
"s": 65.746,
"l": 35.49
},
"oklch": {
"l": 0.37002,
"c": 0.17772,
"h": 286.7
},
"luminance": 0.04272
}Semantic roles & 50–950 ramp
primary
#401F96
secondary
#A1BF52
accent
#E93FBA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980