#42238F#42238F
#42238F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.165 H 288.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).
Color values
| HEX | #42238F |
|---|---|
| RGB | rgb(66, 35, 143) |
| HSL | hsl(257, 61%, 35%) |
| HSV | hsv(257, 76%, 56%) |
| CMYK | cmyk(53.8%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(24.77, 41.57, -54.42) |
| CIE-LCH | lch(24.77, 68.48, 307.37°) |
| OKLab | oklab(37% 0.053 -0.1564) |
| OKLCH | oklch(37% 0.165 288.7) |
| XYZ | xyz(7.8043, 4.3431, 26.4084) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.18
Indigo (survey)
#380282
ΔE00 5.52
Indigo
#4B0082
ΔE00 5.66
Royal
#0C1793
ΔE00 5.81
Cobalt Blue
#030AA7
ΔE00 6.91
Ultramarine
#2000B1
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42238F #708F23
analogous
#233A8F #42238F #78238F
triadic
#42238F #8F4223 #238F42
tetradic
#42238F #8F233A #708F23 #238F78
square
#42238F #8F233A #708F23 #238F78
split-complementary
#42238F #8F7823 #3A8F23
monochromatic
#150B2D #2B175E #42238F #592FC0 #7B57D6
Accessibility & contrast
On white
11.24
#42238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#42238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42238F
11.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42238F | 1.00 | 11.24 | 1.87 | 11.24 |
| #FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#244057
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #42238f; /* rgb */ color: rgb(66, 35, 143); /* oklch */ color: oklch(37.0% 0.165 288.7);
Tailwind
colors: {
custom: {
50: '#7f61b1',
500: '#42238f',
950: '#000000',
},
}SCSS
$custom: #42238f; $custom-light: #7f61b1; $custom-dark: #000000;
JSON
{
"hex": "#42238f",
"rgb": {
"r": 66,
"g": 35,
"b": 143
},
"hsl": {
"h": 257.222,
"s": 60.674,
"l": 34.902
},
"oklch": {
"l": 0.37002,
"c": 0.16518,
"h": 288.7
},
"luminance": 0.04343
}Semantic roles & 50–950 ramp
primary
#42238F
secondary
#9DBA54
accent
#E444B6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980