#42218F#42218F
#42218F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.167 H 289.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).
Color values
| HEX | #42218F |
|---|---|
| RGB | rgb(66, 33, 143) |
| HSL | hsl(258, 63%, 35%) |
| HSV | hsv(258, 77%, 56%) |
| CMYK | cmyk(53.8%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(24.41, 42.59, -55.02) |
| CIE-LCH | lch(24.41, 69.58, 307.75°) |
| OKLab | oklab(36.75% 0.0547 -0.1582) |
| OKLCH | oklch(36.75% 0.167 289.1) |
| XYZ | xyz(7.7471, 4.2288, 26.3893) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.06
Indigo (survey)
#380282
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.28
Royal
#0C1793
ΔE00 5.68
Cobalt Blue
#030AA7
ΔE00 6.69
Ultramarine
#2000B1
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42218F #6E8F21
analogous
#21378F #42218F #79218F
triadic
#42218F #8F4221 #218F42
tetradic
#42218F #8F2137 #6E8F21 #218F79
square
#42218F #8F2137 #6E8F21 #218F79
split-complementary
#42218F #8F7921 #378F21
monochromatic
#140A2C #2B165D #42218F #592CC1 #7B53D7
Accessibility & contrast
On white
11.38
#42218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#42218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42218F
11.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42218F | 1.00 | 11.38 | 1.85 | 11.38 |
| #FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#253F57
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42218f; /* rgb */ color: rgb(66, 33, 143); /* oklch */ color: oklch(36.7% 0.167 289.1);
Tailwind
colors: {
custom: {
50: '#7f60b1',
500: '#42218f',
950: '#000000',
},
}SCSS
$custom: #42218f; $custom-light: #7f60b1; $custom-dark: #000000;
JSON
{
"hex": "#42218f",
"rgb": {
"r": 66,
"g": 33,
"b": 143
},
"hsl": {
"h": 258,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.36748,
"c": 0.16735,
"h": 289.1
},
"luminance": 0.04229
}Semantic roles & 50–950 ramp
primary
#42218F
secondary
#9BBB51
accent
#E642B5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980