#371C86#371C86
#371C86 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.162 H 285.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #371C86 |
|---|---|
| RGB | rgb(55, 28, 134) |
| HSL | hsl(255, 65%, 32%) |
| HSV | hsv(255, 79%, 53%) |
| CMYK | cmyk(59%, 79.1%, 0%, 47.5%) |
| CIE-LAB | lab(21.44, 40.87, -54.32) |
| CIE-LCH | lch(21.44, 67.98, 306.96°) |
| OKLab | oklab(34.11% 0.0438 -0.1564) |
| OKLCH | oklch(34.11% 0.162 285.6) |
| XYZ | xyz(6.2926, 3.3636, 22.8673) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.85
Royal
#0C1793
ΔE00 4.41
Indigo
#4B0082
ΔE00 5.11
Midnight Blue
#191970
ΔE00 5.13
Darkblue
#00008B
ΔE00 6.06
Indigo Blue
#3A18B1
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371C86 #6B861C
analogous
#1C3686 #371C86 #6C1C86
triadic
#371C86 #86371C #1C8637
tetradic
#371C86 #861C36 #6B861C #1C866C
square
#371C86 #861C36 #6B861C #1C866C
split-complementary
#371C86 #866C1C #36861C
monochromatic
#0D0721 #221153 #371C86 #4C27B9 #6A44D8
Accessibility & contrast
On white
12.55
#371C86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#371C86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371C86
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371C86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371C86 | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#0E3A50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #371c86; /* rgb */ color: rgb(55, 28, 134); /* oklch */ color: oklch(34.1% 0.162 285.6);
Tailwind
colors: {
custom: {
50: '#785caa',
500: '#371c86',
950: '#000000',
},
}SCSS
$custom: #371c86; $custom-light: #785caa; $custom-dark: #000000;
JSON
{
"hex": "#371c86",
"rgb": {
"r": 55,
"g": 28,
"b": 134
},
"hsl": {
"h": 255.283,
"s": 65.432,
"l": 31.765
},
"oklch": {
"l": 0.34114,
"c": 0.16246,
"h": 285.6
},
"luminance": 0.03364
}Semantic roles & 50–950 ramp
primary
#371C86
secondary
#9BB945
accent
#E83FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F