#421F8D#421F8D
#421F8D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.167 H 289.9°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #421F8D |
|---|---|
| RGB | rgb(66, 31, 141) |
| HSL | hsl(259, 64%, 34%) |
| HSV | hsv(259, 78%, 55%) |
| CMYK | cmyk(53.2%, 78%, 0%, 44.7%) |
| CIE-LAB | lab(23.87, 43.01, -54.66) |
| CIE-LCH | lch(23.87, 69.55, 308.19°) |
| OKLab | oklab(36.31% 0.0569 -0.1571) |
| OKLCH | oklch(36.31% 0.167 289.9) |
| XYZ | xyz(7.5431, 4.0610, 25.5805) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.67
Indigo
#4B0082
ΔE00 4.81
Indigo Blue
#3A18B1
ΔE00 5.27
Royal
#0C1793
ΔE00 5.66
Cobalt Blue
#030AA7
ΔE00 6.68
Ultramarine
#2000B1
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F8D #6A8D1F
analogous
#1F338D #421F8D #791F8D
triadic
#421F8D #8D421F #1F8D42
tetradic
#421F8D #8D1F33 #6A8D1F #1F8D79
square
#421F8D #8D1F33 #6A8D1F #1F8D79
split-complementary
#421F8D #8D791F #338D1F
monochromatic
#130929 #2B145B #421F8D #592ABF #7A4ED8
Accessibility & contrast
On white
11.59
#421F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#421F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F8D
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F8D | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#263E55
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #421f8d; /* rgb */ color: rgb(66, 31, 141); /* oklch */ color: oklch(36.3% 0.167 289.9);
Tailwind
colors: {
custom: {
50: '#7f5faf',
500: '#421f8d',
950: '#000000',
},
}SCSS
$custom: #421f8d; $custom-light: #7f5faf; $custom-dark: #000000;
JSON
{
"hex": "#421f8d",
"rgb": {
"r": 66,
"g": 31,
"b": 141
},
"hsl": {
"h": 259.091,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.36309,
"c": 0.16709,
"h": 289.9
},
"luminance": 0.04061
}Semantic roles & 50–950 ramp
primary
#421F8D
secondary
#98BB4D
accent
#E741B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980