#421F8E#421F8E
#421F8E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.168 H 289.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #421F8E |
|---|---|
| RGB | rgb(66, 31, 142) |
| HSL | hsl(259, 64%, 34%) |
| HSV | hsv(259, 78%, 56%) |
| CMYK | cmyk(53.5%, 78.2%, 0%, 44.3%) |
| CIE-LAB | lab(23.97, 43.29, -55.13) |
| CIE-LCH | lch(23.97, 70.09, 308.14°) |
| OKLab | oklab(36.41% 0.0566 -0.1585) |
| OKLCH | oklch(36.41% 0.168 289.6) |
| XYZ | xyz(7.6178, 4.0909, 25.9742) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.72
Indigo
#4B0082
ΔE00 4.87
Indigo Blue
#3A18B1
ΔE00 5.12
Royal
#0C1793
ΔE00 5.62
Cobalt Blue
#030AA7
ΔE00 6.58
Ultramarine
#2000B1
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F8E #6B8E1F
analogous
#1F348E #421F8E #7A1F8E
triadic
#421F8E #8E421F #1F8E42
tetradic
#421F8E #8E1F34 #6B8E1F #1F8E7A
square
#421F8E #8E1F34 #6B8E1F #1F8E7A
split-complementary
#421F8E #8E7A1F #348E1F
monochromatic
#13092A #2B145C #421F8E #592AC0 #7A4FD9
Accessibility & contrast
On white
11.55
#421F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#421F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F8E
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F8E | 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)
#003B91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#263E55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #421f8e; /* rgb */ color: rgb(66, 31, 142); /* oklch */ color: oklch(36.4% 0.168 289.6);
Tailwind
colors: {
custom: {
50: '#7f5fb0',
500: '#421f8e',
950: '#000000',
},
}SCSS
$custom: #421f8e; $custom-light: #7f5fb0; $custom-dark: #000000;
JSON
{
"hex": "#421f8e",
"rgb": {
"r": 66,
"g": 31,
"b": 142
},
"hsl": {
"h": 258.919,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.36407,
"c": 0.16826,
"h": 289.6
},
"luminance": 0.04091
}Semantic roles & 50–950 ramp
primary
#421F8E
secondary
#99BB4D
accent
#E741B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980