#421F99#421F99
#421F99 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.181 H 287.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #421F99 |
|---|---|
| RGB | rgb(66, 31, 153) |
| HSL | hsl(257, 66%, 36%) |
| HSV | hsv(257, 80%, 60%) |
| CMYK | cmyk(56.9%, 79.7%, 0%, 40%) |
| CIE-LAB | lab(25.07, 46.44, -60.11) |
| CIE-LCH | lch(25.07, 75.96, 307.69°) |
| OKLab | oklab(37.51% 0.0532 -0.173) |
| OKLCH | oklch(37.51% 0.181 287.1) |
| XYZ | xyz(8.4848, 4.4377, 30.5403) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.51
Royal
#0C1793
ΔE00 5.43
Indigo (survey)
#380282
ΔE00 5.49
Ultramarine
#2000B1
ΔE00 5.53
Indigo
#4B0082
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F99 #76991F
analogous
#1F3999 #421F99 #7F1F99
triadic
#421F99 #99421F #1F9942
tetradic
#421F99 #991F39 #76991F #1F997F
square
#421F99 #991F39 #76991F #1F997F
split-complementary
#421F99 #997F1F #39991F
monochromatic
#160A33 #2C1566 #421F99 #5829CC #7C56DD
Accessibility & contrast
On white
11.13
#421F99 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#421F99 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F99
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F99 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F99 | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#1A435C
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #421f99; /* rgb */ color: rgb(66, 31, 153); /* oklch */ color: oklch(37.5% 0.181 287.1);
Tailwind
colors: {
custom: {
50: '#8160b8',
500: '#421f99',
950: '#000000',
},
}SCSS
$custom: #421f99; $custom-light: #8160b8; $custom-dark: #000000;
JSON
{
"hex": "#421f99",
"rgb": {
"r": 66,
"g": 31,
"b": 153
},
"hsl": {
"h": 257.213,
"s": 66.304,
"l": 36.078
},
"oklch": {
"l": 0.37506,
"c": 0.18105,
"h": 287.1
},
"luminance": 0.04438
}Semantic roles & 50–950 ramp
primary
#421F99
secondary
#A1C054
accent
#E93FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0511
muted
#7C7980