#42259F#42259F
#42259F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.182 H 285.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).
Color values
| HEX | #42259F |
|---|---|
| RGB | rgb(66, 37, 159) |
| HSL | hsl(254, 62%, 38%) |
| HSV | hsv(254, 77%, 62%) |
| CMYK | cmyk(58.5%, 76.7%, 0%, 37.6%) |
| CIE-LAB | lab(26.69, 45.27, -61.11) |
| CIE-LCH | lch(26.69, 76.05, 306.53°) |
| OKLab | oklab(38.82% 0.0472 -0.176) |
| OKLCH | oklch(38.82% 0.182 285) |
| XYZ | xyz(9.1644, 4.9840, 33.2733) |
| Luminance | 0.0498 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.28
Royal
#0C1793
ΔE00 5.95
Ultramarine
#2000B1
ΔE00 5.95
Cobalt Blue
#030AA7
ΔE00 6.23
Violet Blue
#510AC9
ΔE00 6.24
Royal Blue (survey)
#0504AA
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42259F #829F25
analogous
#25459F #42259F #7F259F
triadic
#42259F #9F4225 #259F42
tetradic
#42259F #9F2545 #829F25 #259F7F
square
#42259F #9F2545 #829F25 #259F7F
split-complementary
#42259F #9F7F25 #459F25
monochromatic
#190E3C #2D196D #42259F #5732CF #8064DB
Accessibility & contrast
On white
10.52
#42259F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.00
#42259F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42259F
10.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42259F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42259F | 1.00 | 10.52 | 2.00 | 10.52 |
| #FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#104861
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #42259f; /* rgb */ color: rgb(66, 37, 159); /* oklch */ color: oklch(38.8% 0.182 285.0);
Tailwind
colors: {
custom: {
50: '#8263bd',
500: '#42259f',
950: '#000000',
},
}SCSS
$custom: #42259f; $custom-light: #8263bd; $custom-dark: #000000;
JSON
{
"hex": "#42259f",
"rgb": {
"r": 66,
"g": 37,
"b": 159
},
"hsl": {
"h": 254.262,
"s": 62.245,
"l": 38.431
},
"oklch": {
"l": 0.3882,
"c": 0.18226,
"h": 285
},
"luminance": 0.04985
}Semantic roles & 50–950 ramp
primary
#42259F
secondary
#A9C05F
accent
#E542BF
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81