#42259C#42259C
#42259C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.179 H 285.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #42259C |
|---|---|
| RGB | rgb(66, 37, 156) |
| HSL | hsl(255, 62%, 38%) |
| HSV | hsv(255, 76%, 61%) |
| CMYK | cmyk(57.7%, 76.3%, 0%, 38.8%) |
| CIE-LAB | lab(26.39, 44.38, -59.77) |
| CIE-LCH | lch(26.39, 74.44, 306.60°) |
| OKLab | oklab(38.52% 0.0481 -0.1721) |
| OKLCH | oklch(38.52% 0.179 285.6) |
| XYZ | xyz(8.9073, 4.8812, 31.9188) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.61
Royal
#0C1793
ΔE00 5.86
Ultramarine
#2000B1
ΔE00 6.14
Cobalt Blue
#030AA7
ΔE00 6.33
Royal Blue (survey)
#0504AA
ΔE00 6.61
Violet Blue
#510AC9
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42259C #7F9C25
analogous
#25439C #42259C #7D259C
triadic
#42259C #9C4225 #259C42
tetradic
#42259C #9C2543 #7F9C25 #259C7D
square
#42259C #9C2543 #7F9C25 #259C7D
split-complementary
#42259C #9C7D25 #439C25
monochromatic
#180E39 #2D196B #42259C #5731CD #7F62DA
Accessibility & contrast
On white
10.63
#42259C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#42259C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42259C
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42259C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42259C | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#15465F
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #42259c; /* rgb */ color: rgb(66, 37, 156); /* oklch */ color: oklch(38.5% 0.179 285.6);
Tailwind
colors: {
custom: {
50: '#8163ba',
500: '#42259c',
950: '#000000',
},
}SCSS
$custom: #42259c; $custom-light: #8163ba; $custom-dark: #000000;
JSON
{
"hex": "#42259c",
"rgb": {
"r": 66,
"g": 37,
"b": 156
},
"hsl": {
"h": 254.622,
"s": 61.658,
"l": 37.843
},
"oklch": {
"l": 0.38523,
"c": 0.17868,
"h": 285.6
},
"luminance": 0.04882
}Semantic roles & 50–950 ramp
primary
#42259C
secondary
#A7BF5E
accent
#E543BD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81