#421B8C#421B8C
#421B8C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.170 H 290.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #421B8C |
|---|---|
| RGB | rgb(66, 27, 140) |
| HSL | hsl(261, 68%, 33%) |
| HSV | hsv(261, 81%, 55%) |
| CMYK | cmyk(52.9%, 80.7%, 0%, 45.1%) |
| CIE-LAB | lab(23.12, 44.60, -55.28) |
| CIE-LCH | lch(23.12, 71.03, 308.90°) |
| OKLab | oklab(35.75% 0.0603 -0.1589) |
| OKLCH | oklch(35.75% 0.17 290.8) |
| XYZ | xyz(7.3710, 3.8353, 25.1578) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.94
Indigo
#4B0082
ΔE00 4.09
Indigo Blue
#3A18B1
ΔE00 5.34
Royal
#0C1793
ΔE00 5.60
Cobalt Blue
#030AA7
ΔE00 6.48
Ultramarine
#2000B1
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#421B8C #658C1B
analogous
#1B2C8C #421B8C #7A1B8C
triadic
#421B8C #8C421B #1B8C42
tetradic
#421B8C #8C1B2C #658C1B #1B8C7A
square
#421B8C #8C1B2C #658C1B #1B8C7A
split-complementary
#421B8C #8C7A1B #2C8C1B
monochromatic
#120725 #2A1159 #421B8C #5A25BF #7A46DB
Accessibility & contrast
On white
11.88
#421B8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#421B8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #421B8C
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##421B8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##421B8C | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#273C53
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #421b8c; /* rgb */ color: rgb(66, 27, 140); /* oklch */ color: oklch(35.8% 0.170 290.8);
Tailwind
colors: {
custom: {
50: '#7f5daf',
500: '#421b8c',
950: '#000000',
},
}SCSS
$custom: #421b8c; $custom-light: #7f5daf; $custom-dark: #000000;
JSON
{
"hex": "#421b8c",
"rgb": {
"r": 66,
"g": 27,
"b": 140
},
"hsl": {
"h": 260.708,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.35753,
"c": 0.16991,
"h": 290.8
},
"luminance": 0.03836
}Semantic roles & 50–950 ramp
primary
#421B8C
secondary
#94BD46
accent
#EB3DAF
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0410
muted
#7C797F