#42219E#42219E
#42219E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.185 H 285.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).
Color values
| HEX | #42219E |
|---|---|
| RGB | rgb(66, 33, 158) |
| HSL | hsl(256, 65%, 37%) |
| HSV | hsv(256, 79%, 62%) |
| CMYK | cmyk(58.2%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(25.90, 46.94, -61.79) |
| CIE-LCH | lch(25.90, 77.60, 307.22°) |
| OKLab | oklab(38.24% 0.0503 -0.178) |
| OKLCH | oklch(38.24% 0.185 285.8) |
| XYZ | xyz(8.9603, 4.7141, 32.7789) |
| Luminance | 0.0471 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.98
Ultramarine
#2000B1
ΔE00 5.42
Royal
#0C1793
ΔE00 5.63
Cobalt Blue
#030AA7
ΔE00 5.76
Royal Blue (survey)
#0504AA
ΔE00 5.99
Violet Blue
#510AC9
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42219E #7D9E21
analogous
#213F9E #42219E #81219E
triadic
#42219E #9E4221 #219E42
tetradic
#42219E #9E213F #7D9E21 #219E81
square
#42219E #9E213F #7D9E21 #219E81
split-complementary
#42219E #9E8121 #3F9E21
monochromatic
#180C39 #2D166B #42219E #572CD1 #7E5CDD
Accessibility & contrast
On white
10.81
#42219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#42219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42219E
10.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42219E | 1.00 | 10.81 | 1.94 | 10.81 |
| #FFFFFF | 10.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#12455F
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #42219e; /* rgb */ color: rgb(66, 33, 158); /* oklch */ color: oklch(38.2% 0.185 285.8);
Tailwind
colors: {
custom: {
50: '#8261bc',
500: '#42219e',
950: '#000000',
},
}SCSS
$custom: #42219e; $custom-light: #8261bc; $custom-dark: #000000;
JSON
{
"hex": "#42219e",
"rgb": {
"r": 66,
"g": 33,
"b": 158
},
"hsl": {
"h": 255.84,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.3824,
"c": 0.18496,
"h": 285.8
},
"luminance": 0.04715
}Semantic roles & 50–950 ramp
primary
#42219E
secondary
#A6C159
accent
#E83FBC
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981