#371786#371786
#371786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.167 H 286.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #371786 |
|---|---|
| RGB | rgb(55, 23, 134) |
| HSL | hsl(257, 71%, 31%) |
| HSV | hsv(257, 83%, 53%) |
| CMYK | cmyk(59%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(20.62, 43.26, -55.68) |
| CIE-LCH | lch(20.62, 70.51, 307.84°) |
| OKLab | oklab(33.54% 0.0472 -0.1604) |
| OKLCH | oklch(33.54% 0.167 286.4) |
| XYZ | xyz(6.1837, 3.1459, 22.8310) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.88
Royal
#0C1793
ΔE00 4.36
Indigo
#4B0082
ΔE00 4.41
Midnight Blue
#191970
ΔE00 5.33
Darkblue
#00008B
ΔE00 5.43
Cobalt Blue
#030AA7
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371786 #668617
analogous
#172E86 #371786 #6E1786
triadic
#371786 #863717 #178637
tetradic
#371786 #86172E #668617 #17866E
square
#371786 #86172E #668617 #17866E
split-complementary
#371786 #866E17 #2E8617
monochromatic
#0C051E #220E52 #371786 #4C20BA #693ADD
Accessibility & contrast
On white
12.89
#371786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#371786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371786
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371786 | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#0F384F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #371786; /* rgb */ color: rgb(55, 23, 134); /* oklch */ color: oklch(33.5% 0.167 286.4);
Tailwind
colors: {
custom: {
50: '#7859aa',
500: '#371786',
950: '#000000',
},
}SCSS
$custom: #371786; $custom-light: #7859aa; $custom-dark: #000000;
JSON
{
"hex": "#371786",
"rgb": {
"r": 55,
"g": 23,
"b": 134
},
"hsl": {
"h": 257.297,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.33539,
"c": 0.16716,
"h": 286.4
},
"luminance": 0.03146
}Semantic roles & 50–950 ramp
primary
#371786
secondary
#96BA3F
accent
#ED3ABA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F