#421F8C#421F8C
#421F8C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.166 H 290.1°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).
Color values
| HEX | #421F8C |
|---|---|
| RGB | rgb(66, 31, 140) |
| HSL | hsl(259, 64%, 34%) |
| HSV | hsv(259, 78%, 55%) |
| CMYK | cmyk(52.9%, 77.9%, 0%, 45.1%) |
| CIE-LAB | lab(23.77, 42.72, -54.20) |
| CIE-LCH | lch(23.77, 69.01, 308.24°) |
| OKLab | oklab(36.21% 0.0572 -0.1558) |
| OKLCH | oklch(36.21% 0.166 290.1) |
| XYZ | xyz(7.4690, 4.0313, 25.1904) |
| Luminance | 0.0403 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.63
Indigo
#4B0082
ΔE00 4.75
Indigo Blue
#3A18B1
ΔE00 5.43
Royal
#0C1793
ΔE00 5.72
Cobalt Blue
#030AA7
ΔE00 6.78
Ultramarine
#2000B1
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F8C #698C1F
analogous
#1F328C #421F8C #781F8C
triadic
#421F8C #8C421F #1F8C42
tetradic
#421F8C #8C1F32 #698C1F #1F8C78
square
#421F8C #8C1F32 #698C1F #1F8C78
split-complementary
#421F8C #8C781F #328C1F
monochromatic
#130928 #2A145A #421F8C #5A2ABE #7A4ED8
Accessibility & contrast
On white
11.63
#421F8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#421F8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F8C
11.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F8C | 1.00 | 11.63 | 1.81 | 11.63 |
| #FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#273D54
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #421f8c; /* rgb */ color: rgb(66, 31, 140); /* oklch */ color: oklch(36.2% 0.166 290.1);
Tailwind
colors: {
custom: {
50: '#7f5faf',
500: '#421f8c',
950: '#000000',
},
}SCSS
$custom: #421f8c; $custom-light: #7f5faf; $custom-dark: #000000;
JSON
{
"hex": "#421f8c",
"rgb": {
"r": 66,
"g": 31,
"b": 140
},
"hsl": {
"h": 259.266,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.36211,
"c": 0.16591,
"h": 290.1
},
"luminance": 0.04032
}Semantic roles & 50–950 ramp
primary
#421F8C
secondary
#97BB4C
accent
#E741B2
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0510
muted
#7C797F