#42219C#42219C
#42219C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.183 H 286.2°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #42219C |
|---|---|
| RGB | rgb(66, 33, 156) |
| HSL | hsl(256, 65%, 37%) |
| HSV | hsv(256, 79%, 61%) |
| CMYK | cmyk(57.7%, 78.8%, 0%, 38.8%) |
| CIE-LAB | lab(25.70, 46.36, -60.91) |
| CIE-LCH | lch(25.70, 76.54, 307.28°) |
| OKLab | oklab(38.04% 0.0509 -0.1754) |
| OKLCH | oklch(38.04% 0.183 286.2) |
| XYZ | xyz(8.7896, 4.6458, 31.8796) |
| Luminance | 0.0465 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.23
Ultramarine
#2000B1
ΔE00 5.55
Royal
#0C1793
ΔE00 5.57
Cobalt Blue
#030AA7
ΔE00 5.83
Indigo (survey)
#380282
ΔE00 6.05
Royal Blue (survey)
#0504AA
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42219C #7B9C21
analogous
#213D9C #42219C #80219C
triadic
#42219C #9C4221 #219C42
tetradic
#42219C #9C213D #7B9C21 #219C80
square
#42219C #9C213D #7B9C21 #219C80
split-complementary
#42219C #9C8021 #3D9C21
monochromatic
#170C37 #2D1669 #42219C #572CCF #7E5BDC
Accessibility & contrast
On white
10.89
#42219C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#42219C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42219C
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42219C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42219C | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00399A
Tritanopia (blue-blind)
#16455E
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #42219c; /* rgb */ color: rgb(66, 33, 156); /* oklch */ color: oklch(38.0% 0.183 286.2);
Tailwind
colors: {
custom: {
50: '#8161ba',
500: '#42219c',
950: '#000000',
},
}SCSS
$custom: #42219c; $custom-light: #8161ba; $custom-dark: #000000;
JSON
{
"hex": "#42219c",
"rgb": {
"r": 66,
"g": 33,
"b": 156
},
"hsl": {
"h": 256.098,
"s": 65.079,
"l": 37.059
},
"oklch": {
"l": 0.38038,
"c": 0.18263,
"h": 286.2
},
"luminance": 0.04646
}Semantic roles & 50–950 ramp
primary
#42219C
secondary
#A5C158
accent
#E840BB
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981