#371F84#371F84
#371F84 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.157 H 285.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #371F84 |
|---|---|
| RGB | rgb(55, 31, 132) |
| HSL | hsl(254, 62%, 32%) |
| HSV | hsv(254, 77%, 52%) |
| CMYK | cmyk(58.3%, 76.5%, 0%, 48.2%) |
| CIE-LAB | lab(21.79, 38.70, -52.49) |
| CIE-LCH | lch(21.79, 65.21, 306.40°) |
| OKLab | oklab(34.29% 0.0421 -0.1511) |
| OKLCH | oklch(34.29% 0.157 285.6) |
| XYZ | xyz(6.2291, 3.4578, 22.1645) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.51
Royal
#0C1793
ΔE00 4.74
Midnight Blue
#191970
ΔE00 4.93
Indigo
#4B0082
ΔE00 5.61
Indigo Blue
#3A18B1
ΔE00 6.50
Darkblue
#00008B
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F84 #6C841F
analogous
#1F3A84 #371F84 #691F84
triadic
#371F84 #84371F #1F8437
tetradic
#371F84 #841F3A #6C841F #1F8469
square
#371F84 #841F3A #6C841F #1F8469
split-complementary
#371F84 #84691F #3A841F
monochromatic
#0E0821 #221352 #371F84 #4C2BB6 #6A49D4
Accessibility & contrast
On white
12.41
#371F84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#371F84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F84
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F84 | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003182
Tritanopia (blue-blind)
#113B50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #371f84; /* rgb */ color: rgb(55, 31, 132); /* oklch */ color: oklch(34.3% 0.157 285.6);
Tailwind
colors: {
custom: {
50: '#775ea9',
500: '#371f84',
950: '#000000',
},
}SCSS
$custom: #371f84; $custom-light: #775ea9; $custom-dark: #000000;
JSON
{
"hex": "#371f84",
"rgb": {
"r": 55,
"g": 31,
"b": 132
},
"hsl": {
"h": 254.257,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.34295,
"c": 0.15687,
"h": 285.6
},
"luminance": 0.03458
}Semantic roles & 50–950 ramp
primary
#371F84
secondary
#9CB748
accent
#E543BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F