#421F97#421F97
#421F97 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.179 H 287.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #421F97 |
|---|---|
| RGB | rgb(66, 31, 151) |
| HSL | hsl(258, 66%, 36%) |
| HSV | hsv(258, 79%, 59%) |
| CMYK | cmyk(56.3%, 79.5%, 0%, 40.8%) |
| CIE-LAB | lab(24.87, 45.87, -59.22) |
| CIE-LCH | lch(24.87, 74.91, 307.76°) |
| OKLab | oklab(37.3% 0.0539 -0.1704) |
| OKLCH | oklch(37.3% 0.179 287.5) |
| XYZ | xyz(8.3210, 4.3721, 29.6776) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.79
Indigo (survey)
#380282
ΔE00 5.32
Royal
#0C1793
ΔE00 5.41
Indigo
#4B0082
ΔE00 5.56
Ultramarine
#2000B1
ΔE00 5.71
Cobalt Blue
#030AA7
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F97 #74971F
analogous
#1F3897 #421F97 #7E1F97
triadic
#421F97 #97421F #1F9742
tetradic
#421F97 #971F38 #74971F #1F977E
square
#421F97 #971F38 #74971F #1F977E
split-complementary
#421F97 #977E1F #38971F
monochromatic
#160A31 #2C1564 #421F97 #5829CA #7C54DC
Accessibility & contrast
On white
11.20
#421F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#421F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F97
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F97 | 1.00 | 11.20 | 1.87 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#1D425B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #421f97; /* rgb */ color: rgb(66, 31, 151); /* oklch */ color: oklch(37.3% 0.179 287.5);
Tailwind
colors: {
custom: {
50: '#8160b7',
500: '#421f97',
950: '#000000',
},
}SCSS
$custom: #421f97; $custom-light: #8160b7; $custom-dark: #000000;
JSON
{
"hex": "#421f97",
"rgb": {
"r": 66,
"g": 31,
"b": 151
},
"hsl": {
"h": 257.5,
"s": 65.934,
"l": 35.686
},
"oklch": {
"l": 0.37303,
"c": 0.17874,
"h": 287.5
},
"luminance": 0.04373
}Semantic roles & 50–950 ramp
primary
#421F97
secondary
#A0BF52
accent
#E93FB7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980