#42168F#42168F
#42168F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.178 H 290.6°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).
Color values
| HEX | #42168F |
|---|---|
| RGB | rgb(66, 22, 143) |
| HSL | hsl(262, 73%, 32%) |
| HSV | hsv(262, 85%, 56%) |
| CMYK | cmyk(53.8%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(22.71, 47.53, -57.83) |
| CIE-LCH | lch(22.71, 74.85, 309.42°) |
| OKLab | oklab(35.56% 0.0626 -0.1663) |
| OKLCH | oklch(35.56% 0.178 290.6) |
| XYZ | xyz(7.4902, 3.7149, 26.3037) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.44
Indigo
#4B0082
ΔE00 3.70
Indigo Blue
#3A18B1
ΔE00 4.92
Royal
#0C1793
ΔE00 5.45
Ultramarine
#2000B1
ΔE00 5.84
Cobalt Blue
#030AA7
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42168F #638F16
analogous
#16278F #42168F #7E168F
triadic
#42168F #8F4216 #168F42
tetradic
#42168F #8F1627 #638F16 #168F7E
square
#42168F #8F1627 #638F16 #168F7E
split-complementary
#42168F #8F7E16 #278F16
monochromatic
#110625 #2A0E5A #42168F #5A1EC4 #793EE1
Accessibility & contrast
On white
12.05
#42168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#42168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42168F
12.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42168F | 1.00 | 12.05 | 1.74 | 12.05 |
| #FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#253B54
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #42168f; /* rgb */ color: rgb(66, 22, 143); /* oklch */ color: oklch(35.6% 0.178 290.6);
Tailwind
colors: {
custom: {
50: '#805bb1',
500: '#42168f',
950: '#000000',
},
}SCSS
$custom: #42168f; $custom-light: #805bb1; $custom-dark: #000000;
JSON
{
"hex": "#42168f",
"rgb": {
"r": 66,
"g": 22,
"b": 143
},
"hsl": {
"h": 261.818,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.3556,
"c": 0.17765,
"h": 290.6
},
"luminance": 0.03715
}Semantic roles & 50–950 ramp
primary
#42168F
secondary
#92C13F
accent
#F038AD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980