#42228E#42228E
#42228E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.165 H 289.1°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).
Color values
| HEX | #42228E |
|---|---|
| RGB | rgb(66, 34, 142) |
| HSL | hsl(258, 61%, 35%) |
| HSV | hsv(258, 76%, 56%) |
| CMYK | cmyk(53.5%, 76.1%, 0%, 44.3%) |
| CIE-LAB | lab(24.50, 41.79, -54.26) |
| CIE-LCH | lch(24.50, 68.49, 307.60°) |
| OKLab | oklab(36.78% 0.0541 -0.1559) |
| OKLCH | oklch(36.78% 0.165 289.1) |
| XYZ | xyz(7.6999, 4.2549, 26.0015) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.27
Indigo (survey)
#380282
ΔE00 5.28
Indigo
#4B0082
ΔE00 5.41
Royal
#0C1793
ΔE00 5.78
Cobalt Blue
#030AA7
ΔE00 6.89
Ultramarine
#2000B1
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42228E #6E8E22
analogous
#22388E #42228E #78228E
triadic
#42228E #8E4222 #228E42
tetradic
#42228E #8E2238 #6E8E22 #228E78
square
#42228E #8E2238 #6E8E22 #228E78
split-complementary
#42228E #8E7822 #388E22
monochromatic
#140A2B #2B165D #42228E #592EBF #7B54D6
Accessibility & contrast
On white
11.35
#42228E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#42228E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42228E
11.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42228E | 1.00 | 11.35 | 1.85 | 11.35 |
| #FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#254056
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42228e; /* rgb */ color: rgb(66, 34, 142); /* oklch */ color: oklch(36.8% 0.165 289.1);
Tailwind
colors: {
custom: {
50: '#7f61b0',
500: '#42228e',
950: '#000000',
},
}SCSS
$custom: #42228e; $custom-light: #7f61b0; $custom-dark: #000000;
JSON
{
"hex": "#42228e",
"rgb": {
"r": 66,
"g": 34,
"b": 142
},
"hsl": {
"h": 257.778,
"s": 61.364,
"l": 34.51
},
"oklch": {
"l": 0.36777,
"c": 0.16508,
"h": 289.1
},
"luminance": 0.04255
}Semantic roles & 50–950 ramp
primary
#42228E
secondary
#9BBA52
accent
#E443B5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980