#37157F#37157F
#37157F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.161 H 288.5°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #37157F |
|---|---|
| RGB | rgb(55, 21, 127) |
| HSL | hsl(259, 72%, 29%) |
| HSV | hsv(259, 83%, 50%) |
| CMYK | cmyk(56.7%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(19.56, 42.13, -53.01) |
| CIE-LCH | lch(19.56, 67.71, 308.48°) |
| OKLab | oklab(32.58% 0.0509 -0.1525) |
| OKLCH | oklch(32.58% 0.161 288.5) |
| XYZ | xyz(5.6733, 2.8806, 20.3316) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.53
Indigo
#4B0082
ΔE00 4.07
Midnight Blue
#191970
ΔE00 4.96
Royal
#0C1793
ΔE00 5.09
Darkblue
#00008B
ΔE00 5.61
Navy
#000080
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#37157F #5D7F15
analogous
#15287F #37157F #6C157F
triadic
#37157F #7F3715 #157F37
tetradic
#37157F #7F1528 #5D7F15 #157F6C
square
#37157F #7F1528 #5D7F15 #157F6C
split-complementary
#37157F #7F6C15 #287F15
monochromatic
#0B041A #200C4A #37157F #4E1EB4 #6831DD
Accessibility & contrast
On white
13.32
#37157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#37157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #37157F
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##37157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##37157F | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#19354B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #37157f; /* rgb */ color: rgb(55, 21, 127); /* oklch */ color: oklch(32.6% 0.161 288.5);
Tailwind
colors: {
custom: {
50: '#7758a5',
500: '#37157f',
950: '#000000',
},
}SCSS
$custom: #37157f; $custom-light: #7758a5; $custom-dark: #000000;
JSON
{
"hex": "#37157f",
"rgb": {
"r": 55,
"g": 21,
"b": 127
},
"hsl": {
"h": 259.245,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.32581,
"c": 0.16081,
"h": 288.5
},
"luminance": 0.02881
}Semantic roles & 50–950 ramp
primary
#37157F
secondary
#8DB43C
accent
#EE39B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F