#371785#371785
#371785 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.166 H 286.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #371785 |
|---|---|
| RGB | rgb(55, 23, 133) |
| HSL | hsl(257, 71%, 31%) |
| HSV | hsv(257, 83%, 52%) |
| CMYK | cmyk(58.6%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.51, 42.97, -55.23) |
| CIE-LCH | lch(20.51, 69.98, 307.88°) |
| OKLab | oklab(33.43% 0.0475 -0.159) |
| OKLCH | oklch(33.43% 0.166 286.6) |
| XYZ | xyz(6.1143, 3.1181, 22.4654) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.86
Indigo
#4B0082
ΔE00 4.38
Royal
#0C1793
ΔE00 4.45
Midnight Blue
#191970
ΔE00 5.24
Darkblue
#00008B
ΔE00 5.47
Navy
#000080
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371785 #658517
analogous
#172E85 #371785 #6E1785
triadic
#371785 #853717 #178537
tetradic
#371785 #85172E #658517 #17856E
square
#371785 #85172E #658517 #17856E
split-complementary
#371785 #856E17 #2E8517
monochromatic
#0C051D #210E51 #371785 #4D20B9 #693ADD
Accessibility & contrast
On white
12.93
#371785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#371785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371785
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371785 | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#10384F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #371785; /* rgb */ color: rgb(55, 23, 133); /* oklch */ color: oklch(33.4% 0.166 286.6);
Tailwind
colors: {
custom: {
50: '#7859aa',
500: '#371785',
950: '#000000',
},
}SCSS
$custom: #371785; $custom-light: #7859aa; $custom-dark: #000000;
JSON
{
"hex": "#371785",
"rgb": {
"r": 55,
"g": 23,
"b": 133
},
"hsl": {
"h": 257.455,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.33432,
"c": 0.166,
"h": 286.6
},
"luminance": 0.03118
}Semantic roles & 50–950 ramp
primary
#371785
secondary
#95B93F
accent
#ED3BB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F