#42188F#42188F
#42188F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.176 H 290.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).
Color values
| HEX | #42188F |
|---|---|
| RGB | rgb(66, 24, 143) |
| HSL | hsl(261, 71%, 33%) |
| HSV | hsv(261, 83%, 56%) |
| CMYK | cmyk(53.8%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(22.98, 46.73, -57.38) |
| CIE-LCH | lch(22.98, 74.00, 309.16°) |
| OKLab | oklab(35.75% 0.0613 -0.165) |
| OKLCH | oklch(35.75% 0.176 290.4) |
| XYZ | xyz(7.5299, 3.7944, 26.3169) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.69
Indigo
#4B0082
ΔE00 3.92
Indigo Blue
#3A18B1
ΔE00 4.89
Royal
#0C1793
ΔE00 5.44
Ultramarine
#2000B1
ΔE00 5.95
Cobalt Blue
#030AA7
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42188F #658F18
analogous
#182A8F #42188F #7D188F
triadic
#42188F #8F4218 #188F42
tetradic
#42188F #8F182A #658F18 #188F7D
square
#42188F #8F182A #658F18 #188F7D
split-complementary
#42188F #8F7D18 #2A8F18
monochromatic
#120626 #2A0F5B #42188F #5A21C3 #7A42DF
Accessibility & contrast
On white
11.94
#42188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#42188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42188F
11.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42188F | 1.00 | 11.94 | 1.76 | 11.94 |
| #FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#253C55
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #42188f; /* rgb */ color: rgb(66, 24, 143); /* oklch */ color: oklch(35.7% 0.176 290.4);
Tailwind
colors: {
custom: {
50: '#805cb1',
500: '#42188f',
950: '#000000',
},
}SCSS
$custom: #42188f; $custom-light: #805cb1; $custom-dark: #000000;
JSON
{
"hex": "#42188f",
"rgb": {
"r": 66,
"g": 24,
"b": 143
},
"hsl": {
"h": 261.176,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.35749,
"c": 0.176,
"h": 290.4
},
"luminance": 0.03795
}Semantic roles & 50–950 ramp
primary
#42188F
secondary
#94C043
accent
#EE3AAE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980