#42228C#42228C
#42228C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.163 H 289.6°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #42228C |
|---|---|
| RGB | rgb(66, 34, 140) |
| HSL | hsl(258, 61%, 34%) |
| HSV | hsv(258, 76%, 55%) |
| CMYK | cmyk(52.9%, 75.7%, 0%, 45.1%) |
| CIE-LAB | lab(24.31, 41.21, -53.33) |
| CIE-LCH | lch(24.31, 67.39, 307.69°) |
| OKLab | oklab(36.59% 0.0547 -0.1532) |
| OKLCH | oklch(36.59% 0.163 289.6) |
| XYZ | xyz(7.5510, 4.1954, 25.2178) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 5.22
Indigo
#4B0082
ΔE00 5.32
Indigo Blue
#3A18B1
ΔE00 5.57
Royal
#0C1793
ΔE00 5.89
Midnight Blue
#191970
ΔE00 6.97
Cobalt Blue
#030AA7
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42228C #6C8C22
analogous
#22378C #42228C #77228C
triadic
#42228C #8C4222 #228C42
tetradic
#42228C #8C2237 #6C8C22 #228C77
square
#42228C #8C2237 #6C8C22 #228C77
split-complementary
#42228C #8C7722 #378C22
monochromatic
#140A2A #2B165B #42228C #592EBD #7A53D5
Accessibility & contrast
On white
11.42
#42228C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#42228C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42228C
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42228C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42228C | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#273F55
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #42228c; /* rgb */ color: rgb(66, 34, 140); /* oklch */ color: oklch(36.6% 0.163 289.6);
Tailwind
colors: {
custom: {
50: '#7f61af',
500: '#42228c',
950: '#000000',
},
}SCSS
$custom: #42228c; $custom-light: #7f61af; $custom-dark: #000000;
JSON
{
"hex": "#42228c",
"rgb": {
"r": 66,
"g": 34,
"b": 140
},
"hsl": {
"h": 258.113,
"s": 60.92,
"l": 34.118
},
"oklch": {
"l": 0.36585,
"c": 0.16267,
"h": 289.6
},
"luminance": 0.04196
}Semantic roles & 50–950 ramp
primary
#42228C
secondary
#9AB951
accent
#E444B4
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F