#42249C#42249C
#42249C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.180 H 285.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).
Color values
| HEX | #42249C |
|---|---|
| RGB | rgb(66, 36, 156) |
| HSL | hsl(255, 63%, 38%) |
| HSV | hsv(255, 77%, 61%) |
| CMYK | cmyk(57.7%, 76.9%, 0%, 38.8%) |
| CIE-LAB | lab(26.22, 44.89, -60.06) |
| CIE-LCH | lch(26.22, 74.98, 306.77°) |
| OKLab | oklab(38.4% 0.0488 -0.1729) |
| OKLCH | oklch(38.4% 0.18 285.8) |
| XYZ | xyz(8.8766, 4.8198, 31.9086) |
| Luminance | 0.0482 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.50
Royal
#0C1793
ΔE00 5.78
Ultramarine
#2000B1
ΔE00 5.98
Cobalt Blue
#030AA7
ΔE00 6.19
Royal Blue (survey)
#0504AA
ΔE00 6.46
Indigo (survey)
#380282
ΔE00 6.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42249C #7E9C24
analogous
#24429C #42249C #7E249C
triadic
#42249C #9C4224 #249C42
tetradic
#42249C #9C2442 #7E9C24 #249C7E
square
#42249C #9C2442 #7E9C24 #249C7E
split-complementary
#42249C #9C7E24 #429C24
monochromatic
#180D39 #2D196A #42249C #572FCE #7F60DA
Accessibility & contrast
On white
10.69
#42249C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.96
#42249C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42249C
10.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42249C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42249C | 1.00 | 10.69 | 1.96 | 10.69 |
| #FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.96 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#15465F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #42249c; /* rgb */ color: rgb(66, 36, 156); /* oklch */ color: oklch(38.4% 0.180 285.8);
Tailwind
colors: {
custom: {
50: '#8163ba',
500: '#42249c',
950: '#000000',
},
}SCSS
$custom: #42249c; $custom-light: #8163ba; $custom-dark: #000000;
JSON
{
"hex": "#42249c",
"rgb": {
"r": 66,
"g": 36,
"b": 156
},
"hsl": {
"h": 255,
"s": 62.5,
"l": 37.647
},
"oklch": {
"l": 0.38397,
"c": 0.1797,
"h": 285.8
},
"luminance": 0.0482
}Semantic roles & 50–950 ramp
primary
#42249C
secondary
#A7BF5C
accent
#E642BD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81