#42219A#42219A
#42219A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.180 H 286.6°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).
Color values
| HEX | #42219A |
|---|---|
| RGB | rgb(66, 33, 154) |
| HSL | hsl(256, 65%, 37%) |
| HSV | hsv(256, 79%, 60%) |
| CMYK | cmyk(57.1%, 78.6%, 0%, 39.6%) |
| CIE-LAB | lab(25.50, 45.78, -60.02) |
| CIE-LCH | lch(25.50, 75.48, 307.34°) |
| OKLab | oklab(37.84% 0.0515 -0.1728) |
| OKLCH | oklch(37.84% 0.18 286.6) |
| XYZ | xyz(8.6216, 4.5786, 30.9950) |
| Luminance | 0.0458 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.49
Royal
#0C1793
ΔE00 5.54
Ultramarine
#2000B1
ΔE00 5.70
Indigo (survey)
#380282
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 5.92
Indigo
#4B0082
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42219A #799A21
analogous
#213C9A #42219A #7F219A
triadic
#42219A #9A4221 #219A42
tetradic
#42219A #9A213C #799A21 #219A7F
square
#42219A #9A213C #799A21 #219A7F
split-complementary
#42219A #9A7F21 #3C9A21
monochromatic
#170B35 #2C1668 #42219A #582CCC #7D5ADC
Accessibility & contrast
On white
10.96
#42219A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#42219A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42219A
10.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42219A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42219A | 1.00 | 10.96 | 1.92 | 10.96 |
| #FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003998
Tritanopia (blue-blind)
#19445D
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #42219a; /* rgb */ color: rgb(66, 33, 154); /* oklch */ color: oklch(37.8% 0.180 286.6);
Tailwind
colors: {
custom: {
50: '#8161b9',
500: '#42219a',
950: '#000000',
},
}SCSS
$custom: #42219a; $custom-light: #8161b9; $custom-dark: #000000;
JSON
{
"hex": "#42219a",
"rgb": {
"r": 66,
"g": 33,
"b": 154
},
"hsl": {
"h": 256.364,
"s": 64.706,
"l": 36.667
},
"oklch": {
"l": 0.37836,
"c": 0.18031,
"h": 286.6
},
"luminance": 0.04579
}Semantic roles & 50–950 ramp
primary
#42219A
secondary
#A3C057
accent
#E840BA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981