#371F86#371F86
#371F86 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.159 H 285.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #371F86 |
|---|---|
| RGB | rgb(55, 31, 134) |
| HSL | hsl(254, 62%, 32%) |
| HSV | hsv(254, 77%, 53%) |
| CMYK | cmyk(59%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(21.99, 39.31, -53.42) |
| CIE-LCH | lch(21.99, 66.33, 306.35°) |
| OKLab | oklab(34.5% 0.0415 -0.1538) |
| OKLCH | oklch(34.5% 0.159 285.1) |
| XYZ | xyz(6.3673, 3.5130, 22.8922) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.51
Royal
#0C1793
ΔE00 4.56
Midnight Blue
#191970
ΔE00 5.10
Indigo
#4B0082
ΔE00 5.62
Indigo Blue
#3A18B1
ΔE00 6.19
Cobalt Blue
#030AA7
ΔE00 6.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F86 #6E861F
analogous
#1F3A86 #371F86 #6B1F86
triadic
#371F86 #86371F #1F8637
tetradic
#371F86 #861F3A #6E861F #1F866B
square
#371F86 #861F3A #6E861F #1F866B
split-complementary
#371F86 #866B1F #3A861F
monochromatic
#0E0823 #231454 #371F86 #4B2AB8 #6B4AD5
Accessibility & contrast
On white
12.33
#371F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#371F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F86
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F86 | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#0E3C51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #371f86; /* rgb */ color: rgb(55, 31, 134); /* oklch */ color: oklch(34.5% 0.159 285.1);
Tailwind
colors: {
custom: {
50: '#785eaa',
500: '#371f86',
950: '#000000',
},
}SCSS
$custom: #371f86; $custom-light: #785eaa; $custom-dark: #000000;
JSON
{
"hex": "#371f86",
"rgb": {
"r": 55,
"g": 31,
"b": 134
},
"hsl": {
"h": 253.981,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.34497,
"c": 0.15936,
"h": 285.1
},
"luminance": 0.03513
}Semantic roles & 50–950 ramp
primary
#371F86
secondary
#9EB849
accent
#E542BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F