#42249E#42249E
#42249E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.182 H 285.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).
Color values
| HEX | #42249E |
|---|---|
| RGB | rgb(66, 36, 158) |
| HSL | hsl(255, 63%, 38%) |
| HSV | hsv(255, 77%, 62%) |
| CMYK | cmyk(58.2%, 77.2%, 0%, 38%) |
| CIE-LAB | lab(26.41, 45.48, -60.95) |
| CIE-LCH | lch(26.41, 76.05, 306.73°) |
| OKLab | oklab(38.6% 0.0482 -0.1756) |
| OKLCH | oklch(38.6% 0.182 285.4) |
| XYZ | xyz(9.0473, 4.8881, 32.8079) |
| Luminance | 0.0489 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.27
Royal
#0C1793
ΔE00 5.83
Ultramarine
#2000B1
ΔE00 5.85
Cobalt Blue
#030AA7
ΔE00 6.12
Violet Blue
#510AC9
ΔE00 6.29
Royal Blue (survey)
#0504AA
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42249E #809E24
analogous
#24439E #42249E #7F249E
triadic
#42249E #9E4224 #249E42
tetradic
#42249E #9E2443 #809E24 #249E7F
square
#42249E #9E2443 #809E24 #249E7F
split-complementary
#42249E #9E7F24 #439E24
monochromatic
#180D3A #2D196C #42249E #572FD0 #7F61DB
Accessibility & contrast
On white
10.62
#42249E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#42249E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42249E
10.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42249E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42249E | 1.00 | 10.62 | 1.98 | 10.62 |
| #FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#124760
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #42249e; /* rgb */ color: rgb(66, 36, 158); /* oklch */ color: oklch(38.6% 0.182 285.4);
Tailwind
colors: {
custom: {
50: '#8263bc',
500: '#42249e',
950: '#000000',
},
}SCSS
$custom: #42249e; $custom-light: #8263bc; $custom-dark: #000000;
JSON
{
"hex": "#42249e",
"rgb": {
"r": 66,
"g": 36,
"b": 158
},
"hsl": {
"h": 254.754,
"s": 62.887,
"l": 38.039
},
"oklch": {
"l": 0.38596,
"c": 0.18207,
"h": 285.4
},
"luminance": 0.04889
}Semantic roles & 50–950 ramp
primary
#42249E
secondary
#A8C05E
accent
#E642BE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81