#42218D#42218D
#42218D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.165 H 289.6°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).
Color values
| HEX | #42218D |
|---|---|
| RGB | rgb(66, 33, 141) |
| HSL | hsl(258, 62%, 34%) |
| HSV | hsv(258, 77%, 55%) |
| CMYK | cmyk(53.2%, 76.6%, 0%, 44.7%) |
| CIE-LAB | lab(24.22, 42.01, -54.09) |
| CIE-LCH | lch(24.22, 68.49, 307.84°) |
| OKLab | oklab(36.55% 0.0552 -0.1554) |
| OKLCH | oklch(36.55% 0.165 289.6) |
| XYZ | xyz(7.5969, 4.1687, 25.5985) |
| Luminance | 0.0417 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.05
Indigo
#4B0082
ΔE00 5.17
Indigo Blue
#3A18B1
ΔE00 5.36
Royal
#0C1793
ΔE00 5.77
Cobalt Blue
#030AA7
ΔE00 6.88
Ultramarine
#2000B1
ΔE00 6.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42218D #6C8D21
analogous
#21368D #42218D #78218D
triadic
#42218D #8D4221 #218D42
tetradic
#42218D #8D2136 #6C8D21 #218D78
square
#42218D #8D2136 #6C8D21 #218D78
split-complementary
#42218D #8D7821 #368D21
monochromatic
#140A2A #2B155B #42218D #592DBF #7A52D6
Accessibility & contrast
On white
11.45
#42218D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#42218D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42218D
11.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42218D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42218D | 1.00 | 11.45 | 1.83 | 11.45 |
| #FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#263F55
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42218d; /* rgb */ color: rgb(66, 33, 141); /* oklch */ color: oklch(36.6% 0.165 289.6);
Tailwind
colors: {
custom: {
50: '#7f60af',
500: '#42218d',
950: '#000000',
},
}SCSS
$custom: #42218d; $custom-light: #7f60af; $custom-dark: #000000;
JSON
{
"hex": "#42218d",
"rgb": {
"r": 66,
"g": 33,
"b": 141
},
"hsl": {
"h": 258.333,
"s": 62.069,
"l": 34.118
},
"oklch": {
"l": 0.36554,
"c": 0.16497,
"h": 289.6
},
"luminance": 0.04169
}Semantic roles & 50–950 ramp
primary
#42218D
secondary
#9ABA50
accent
#E543B3
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F