#401C8C#401C8C
#401C8C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.169 H 289.5°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).
Color values
| HEX | #401C8C |
|---|---|
| RGB | rgb(64, 28, 140) |
| HSL | hsl(259, 67%, 33%) |
| HSV | hsv(259, 80%, 55%) |
| CMYK | cmyk(54.3%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(23.05, 43.87, -55.41) |
| CIE-LCH | lch(23.05, 70.67, 308.37°) |
| OKLab | oklab(35.65% 0.0563 -0.1593) |
| OKLCH | oklch(35.65% 0.169 289.5) |
| XYZ | xyz(7.2619, 3.8136, 25.1593) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.04
Indigo
#4B0082
ΔE00 4.42
Indigo Blue
#3A18B1
ΔE00 5.28
Royal
#0C1793
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 6.31
Ultramarine
#2000B1
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#401C8C #688C1C
analogous
#1C308C #401C8C #781C8C
triadic
#401C8C #8C401C #1C8C40
tetradic
#401C8C #8C1C30 #688C1C #1C8C78
square
#401C8C #8C1C30 #688C1C #1C8C78
split-complementary
#401C8C #8C781C #308C1C
monochromatic
#110826 #291259 #401C8C #5726BF #7748DA
Accessibility & contrast
On white
11.91
#401C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#401C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #401C8C
11.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##401C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##401C8C | 1.00 | 11.91 | 1.76 | 11.91 |
| #FFFFFF | 11.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#233C54
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #401c8c; /* rgb */ color: rgb(64, 28, 140); /* oklch */ color: oklch(35.6% 0.169 289.5);
Tailwind
colors: {
custom: {
50: '#7e5daf',
500: '#401c8c',
950: '#000000',
},
}SCSS
$custom: #401c8c; $custom-light: #7e5daf; $custom-dark: #000000;
JSON
{
"hex": "#401c8c",
"rgb": {
"r": 64,
"g": 28,
"b": 140
},
"hsl": {
"h": 259.286,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.35648,
"c": 0.16898,
"h": 289.5
},
"luminance": 0.03814
}Semantic roles & 50–950 ramp
primary
#401C8C
secondary
#97BC48
accent
#EA3EB2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0410
muted
#7C797F