#39157E#39157E
#39157E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.160 H 290.0°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).
Color values
| HEX | #39157E |
|---|---|
| RGB | rgb(57, 21, 126) |
| HSL | hsl(261, 71%, 29%) |
| HSV | hsv(261, 83%, 49%) |
| CMYK | cmyk(54.8%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(19.69, 42.11, -52.15) |
| CIE-LCH | lch(19.69, 67.03, 308.92°) |
| OKLab | oklab(32.69% 0.0546 -0.15) |
| OKLCH | oklch(32.69% 0.16 290) |
| XYZ | xyz(5.7203, 2.9123, 19.9953) |
| Luminance | 0.0291 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.57
Indigo
#4B0082
ΔE00 3.82
Midnight Blue
#191970
ΔE00 5.19
Royal
#0C1793
ΔE00 5.47
Royal Purple (survey)
#4B006E
ΔE00 5.54
Darkblue
#00008B
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#39157E #5A7E15
analogous
#15267E #39157E #6E157E
triadic
#39157E #7E3915 #157E39
tetradic
#39157E #7E1526 #5A7E15 #157E6E
square
#39157E #7E1526 #5A7E15 #157E6E
split-complementary
#39157E #7E6E15 #267E15
monochromatic
#0C041A #210C4A #39157E #511EB2 #6C31DD
Accessibility & contrast
On white
13.27
#39157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#39157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #39157E
13.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##39157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##39157E | 1.00 | 13.27 | 1.58 | 13.27 |
| #FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#1F344A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #39157e; /* rgb */ color: rgb(57, 21, 126); /* oklch */ color: oklch(32.7% 0.160 290.0);
Tailwind
colors: {
custom: {
50: '#7858a4',
500: '#39157e',
950: '#000000',
},
}SCSS
$custom: #39157e; $custom-light: #7858a4; $custom-dark: #000000;
JSON
{
"hex": "#39157e",
"rgb": {
"r": 57,
"g": 21,
"b": 126
},
"hsl": {
"h": 260.571,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.32694,
"c": 0.1596,
"h": 290
},
"luminance": 0.02913
}Semantic roles & 50–950 ramp
primary
#39157E
secondary
#8AB33C
accent
#EE3AB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F