#421F9B#421F9B
#421F9B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.183 H 286.7°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).
Color values
| HEX | #421F9B |
|---|---|
| RGB | rgb(66, 31, 155) |
| HSL | hsl(257, 67%, 36%) |
| HSV | hsv(257, 80%, 61%) |
| CMYK | cmyk(57.4%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(25.27, 47.01, -61.00) |
| CIE-LCH | lch(25.27, 77.01, 307.62°) |
| OKLab | oklab(37.71% 0.0526 -0.1756) |
| OKLCH | oklch(37.71% 0.183 286.7) |
| XYZ | xyz(8.6514, 4.5043, 31.4175) |
| Luminance | 0.0450 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.24
Ultramarine
#2000B1
ΔE00 5.38
Royal
#0C1793
ΔE00 5.45
Cobalt Blue
#030AA7
ΔE00 5.67
Indigo (survey)
#380282
ΔE00 5.67
Royal Blue (survey)
#0504AA
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F9B #789B1F
analogous
#1F3A9B #421F9B #801F9B
triadic
#421F9B #9B421F #1F9B42
tetradic
#421F9B #9B1F3A #789B1F #1F9B80
square
#421F9B #9B1F3A #789B1F #1F9B80
split-complementary
#421F9B #9B801F #3A9B1F
monochromatic
#170B35 #2C1568 #421F9B #5829CE #7D57DD
Accessibility & contrast
On white
11.05
#421F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#421F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F9B
11.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F9B | 1.00 | 11.05 | 1.90 | 11.05 |
| #FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#17435D
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #421f9b; /* rgb */ color: rgb(66, 31, 155); /* oklch */ color: oklch(37.7% 0.183 286.7);
Tailwind
colors: {
custom: {
50: '#8160ba',
500: '#421f9b',
950: '#000000',
},
}SCSS
$custom: #421f9b; $custom-light: #8160ba; $custom-dark: #000000;
JSON
{
"hex": "#421f9b",
"rgb": {
"r": 66,
"g": 31,
"b": 155
},
"hsl": {
"h": 256.935,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.37709,
"c": 0.18335,
"h": 286.7
},
"luminance": 0.04505
}Semantic roles & 50–950 ramp
primary
#421F9B
secondary
#A2C155
accent
#EA3EB9
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981