#421F98#421F98
#421F98 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.180 H 287.3°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).
Color values
| HEX | #421F98 |
|---|---|
| RGB | rgb(66, 31, 152) |
| HSL | hsl(257, 66%, 36%) |
| HSV | hsv(257, 80%, 60%) |
| CMYK | cmyk(56.6%, 79.6%, 0%, 40.4%) |
| CIE-LAB | lab(24.97, 46.16, -59.66) |
| CIE-LCH | lch(24.97, 75.43, 307.73°) |
| OKLab | oklab(37.4% 0.0536 -0.1717) |
| OKLCH | oklch(37.4% 0.18 287.3) |
| XYZ | xyz(8.4026, 4.4048, 30.1071) |
| Luminance | 0.0440 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.65
Indigo (survey)
#380282
ΔE00 5.40
Royal
#0C1793
ΔE00 5.42
Ultramarine
#2000B1
ΔE00 5.62
Indigo
#4B0082
ΔE00 5.65
Cobalt Blue
#030AA7
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421F98 #75981F
analogous
#1F3998 #421F98 #7E1F98
triadic
#421F98 #98421F #1F9842
tetradic
#421F98 #981F39 #75981F #1F987E
square
#421F98 #981F39 #75981F #1F987E
split-complementary
#421F98 #987E1F #39981F
monochromatic
#160A32 #2C1565 #421F98 #5829CB #7C55DC
Accessibility & contrast
On white
11.16
#421F98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#421F98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421F98
11.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421F98 | 1.00 | 11.16 | 1.88 | 11.16 |
| #FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#1B425B
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #421f98; /* rgb */ color: rgb(66, 31, 152); /* oklch */ color: oklch(37.4% 0.180 287.3);
Tailwind
colors: {
custom: {
50: '#8160b7',
500: '#421f98',
950: '#000000',
},
}SCSS
$custom: #421f98; $custom-light: #8160b7; $custom-dark: #000000;
JSON
{
"hex": "#421f98",
"rgb": {
"r": 66,
"g": 31,
"b": 152
},
"hsl": {
"h": 257.355,
"s": 66.12,
"l": 35.882
},
"oklch": {
"l": 0.37404,
"c": 0.1799,
"h": 287.3
},
"luminance": 0.04405
}Semantic roles & 50–950 ramp
primary
#421F98
secondary
#A0C053
accent
#E93FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0511
muted
#7C7980