#42218E#42218E
#42218E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.166 H 289.3°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #42218E |
|---|---|
| RGB | rgb(66, 33, 142) |
| HSL | hsl(258, 62%, 34%) |
| HSV | hsv(258, 77%, 56%) |
| CMYK | cmyk(53.5%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(24.32, 42.30, -54.55) |
| CIE-LCH | lch(24.32, 69.03, 307.79°) |
| OKLab | oklab(36.65% 0.055 -0.1568) |
| OKLCH | oklch(36.65% 0.166 289.3) |
| XYZ | xyz(7.6717, 4.1986, 25.9921) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.09
Indigo Blue
#3A18B1
ΔE00 5.21
Indigo
#4B0082
ΔE00 5.23
Royal
#0C1793
ΔE00 5.72
Cobalt Blue
#030AA7
ΔE00 6.78
Ultramarine
#2000B1
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42218E #6D8E21
analogous
#21378E #42218E #79218E
triadic
#42218E #8E4221 #218E42
tetradic
#42218E #8E2137 #6D8E21 #218E79
square
#42218E #8E2137 #6D8E21 #218E79
split-complementary
#42218E #8E7921 #378E21
monochromatic
#140A2B #2B155C #42218E #592DC0 #7B52D7
Accessibility & contrast
On white
11.41
#42218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#42218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42218E
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42218E | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#253F56
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42218e; /* rgb */ color: rgb(66, 33, 142); /* oklch */ color: oklch(36.7% 0.166 289.3);
Tailwind
colors: {
custom: {
50: '#7f60b0',
500: '#42218e',
950: '#000000',
},
}SCSS
$custom: #42218e; $custom-light: #7f60b0; $custom-dark: #000000;
JSON
{
"hex": "#42218e",
"rgb": {
"r": 66,
"g": 33,
"b": 142
},
"hsl": {
"h": 258.165,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36651,
"c": 0.16616,
"h": 289.3
},
"luminance": 0.04199
}Semantic roles & 50–950 ramp
primary
#42218E
secondary
#9ABA50
accent
#E542B4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980