#421F8F#421F8F
#421F8F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.169 H 289.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #421F8F |
|---|---|
| RGB | rgb(66, 31, 143) |
| HSL | hsl(259, 64%, 34%) |
| HSV | hsv(259, 78%, 56%) |
| CMYK | cmyk(53.8%, 78.3%, 0%, 43.9%) |
| CIE-LAB | lab(24.07, 43.58, -55.59) |
| CIE-LCH | lch(24.07, 70.63, 308.10°) |
| OKLab | oklab(36.5% 0.0563 -0.1598) |
| OKLCH | oklch(36.5% 0.169 289.4) |
| XYZ | xyz(7.6932, 4.1210, 26.3713) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.77
Indigo
#4B0082
ΔE00 4.93
Indigo Blue
#3A18B1
ΔE00 4.96
Royal
#0C1793
ΔE00 5.57
Cobalt Blue
#030AA7
ΔE00 6.49
Ultramarine
#2000B1
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F8F #6C8F1F
analogous
#1F348F #421F8F #7A1F8F
triadic
#421F8F #8F421F #1F8F42
tetradic
#421F8F #8F1F34 #6C8F1F #1F8F7A
square
#421F8F #8F1F34 #6C8F1F #1F8F7A
split-complementary
#421F8F #8F7A1F #348F1F
monochromatic
#14092A #2B145D #421F8F #592AC1 #7A4FD9
Accessibility & contrast
On white
11.51
#421F8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#421F8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F8F
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F8F | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #421f8f; /* rgb */ color: rgb(66, 31, 143); /* oklch */ color: oklch(36.5% 0.169 289.4);
Tailwind
colors: {
custom: {
50: '#7f5fb1',
500: '#421f8f',
950: '#000000',
},
}SCSS
$custom: #421f8f; $custom-light: #7f5fb1; $custom-dark: #000000;
JSON
{
"hex": "#421f8f",
"rgb": {
"r": 66,
"g": 31,
"b": 143
},
"hsl": {
"h": 258.75,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.36505,
"c": 0.16943,
"h": 289.4
},
"luminance": 0.04121
}Semantic roles & 50–950 ramp
primary
#421F8F
secondary
#9ABC4E
accent
#E740B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980