#401C95#401C95
#401C95 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.179 H 287.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #401C95 |
|---|---|
| RGB | rgb(64, 28, 149) |
| HSL | hsl(258, 68%, 35%) |
| HSV | hsv(258, 81%, 58%) |
| CMYK | cmyk(57%, 81.2%, 0%, 41.6%) |
| CIE-LAB | lab(23.97, 46.42, -59.47) |
| CIE-LCH | lch(23.97, 75.44, 307.97°) |
| OKLab | oklab(36.57% 0.0534 -0.1712) |
| OKLCH | oklch(36.57% 0.179 287.3) |
| XYZ | xyz(7.9528, 4.0900, 28.7983) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.92
Indigo (survey)
#380282
ΔE00 4.66
Royal
#0C1793
ΔE00 5.03
Indigo
#4B0082
ΔE00 5.10
Ultramarine
#2000B1
ΔE00 5.43
Cobalt Blue
#030AA7
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401C95 #71951C
analogous
#1C3595 #401C95 #7D1C95
triadic
#401C95 #95401C #1C9540
tetradic
#401C95 #951C35 #71951C #1C957D
square
#401C95 #951C35 #71951C #1C957D
split-complementary
#401C95 #957D1C #35951C
monochromatic
#14092E #2A1261 #401C95 #5626C9 #794EDE
Accessibility & contrast
On white
11.55
#401C95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#401C95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401C95
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401C95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401C95 | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#194059
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #401c95; /* rgb */ color: rgb(64, 28, 149); /* oklch */ color: oklch(36.6% 0.179 287.3);
Tailwind
colors: {
custom: {
50: '#7f5eb5',
500: '#401c95',
950: '#000000',
},
}SCSS
$custom: #401c95; $custom-light: #7f5eb5; $custom-dark: #000000;
JSON
{
"hex": "#401c95",
"rgb": {
"r": 64,
"g": 28,
"b": 149
},
"hsl": {
"h": 257.851,
"s": 68.362,
"l": 34.706
},
"oklch": {
"l": 0.36566,
"c": 0.17934,
"h": 287.3
},
"luminance": 0.0409
}Semantic roles & 50–950 ramp
primary
#401C95
secondary
#9EC04D
accent
#EB3DB7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980