#42249F#42249F
#42249F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.183 H 285.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).
Color values
| HEX | #42249F |
|---|---|
| RGB | rgb(66, 36, 159) |
| HSL | hsl(255, 63%, 38%) |
| HSV | hsv(255, 77%, 62%) |
| CMYK | cmyk(58.5%, 77.4%, 0%, 37.6%) |
| CIE-LAB | lab(26.51, 45.77, -61.40) |
| CIE-LCH | lch(26.51, 76.58, 306.70°) |
| OKLab | oklab(38.7% 0.048 -0.1769) |
| OKLCH | oklch(38.7% 0.183 285.2) |
| XYZ | xyz(9.1337, 4.9227, 33.2630) |
| Luminance | 0.0492 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.16
Ultramarine
#2000B1
ΔE00 5.80
Royal
#0C1793
ΔE00 5.86
Cobalt Blue
#030AA7
ΔE00 6.10
Violet Blue
#510AC9
ΔE00 6.16
Royal Blue (survey)
#0504AA
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42249F #819F24
analogous
#24439F #42249F #7F249F
triadic
#42249F #9F4224 #249F42
tetradic
#42249F #9F2443 #819F24 #249F7F
square
#42249F #9F2443 #819F24 #249F7F
split-complementary
#42249F #9F7F24 #439F24
monochromatic
#190D3B #2D196D #42249F #5730D0 #8062DB
Accessibility & contrast
On white
10.58
#42249F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#42249F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42249F
10.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42249F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42249F | 1.00 | 10.58 | 1.98 | 10.58 |
| #FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#104760
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42249f; /* rgb */ color: rgb(66, 36, 159); /* oklch */ color: oklch(38.7% 0.183 285.2);
Tailwind
colors: {
custom: {
50: '#8263bd',
500: '#42249f',
950: '#000000',
},
}SCSS
$custom: #42249f; $custom-light: #8263bd; $custom-dark: #000000;
JSON
{
"hex": "#42249f",
"rgb": {
"r": 66,
"g": 36,
"b": 159
},
"hsl": {
"h": 254.634,
"s": 63.077,
"l": 38.235
},
"oklch": {
"l": 0.38696,
"c": 0.18325,
"h": 285.2
},
"luminance": 0.04923
}Semantic roles & 50–950 ramp
primary
#42249F
secondary
#A9C15E
accent
#E642BE
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81