#371F82#371F82
#371F82 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.154 H 286.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).
Color values
| HEX | #371F82 |
|---|---|
| RGB | rgb(55, 31, 130) |
| HSL | hsl(255, 61%, 32%) |
| HSV | hsv(255, 76%, 51%) |
| CMYK | cmyk(57.7%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(21.59, 38.08, -51.56) |
| CIE-LCH | lch(21.59, 64.10, 306.45°) |
| OKLab | oklab(34.1% 0.0426 -0.1484) |
| OKLCH | oklch(34.1% 0.154 286) |
| XYZ | xyz(6.0936, 3.4036, 21.4506) |
| Luminance | 0.0340 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.54
Midnight Blue
#191970
ΔE00 4.78
Royal
#0C1793
ΔE00 4.95
Indigo
#4B0082
ΔE00 5.61
Darkblue
#00008B
ΔE00 6.73
Indigo Blue
#3A18B1
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F82 #6A821F
analogous
#1F3982 #371F82 #691F82
triadic
#371F82 #82371F #1F8237
tetradic
#371F82 #821F39 #6A821F #1F8269
square
#371F82 #821F39 #6A821F #1F8269
split-complementary
#371F82 #82691F #39821F
monochromatic
#0D071F #221351 #371F82 #4C2BB3 #6A48D3
Accessibility & contrast
On white
12.49
#371F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#371F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F82
12.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F82 | 1.00 | 12.49 | 1.68 | 12.49 |
| #FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#143A4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #371f82; /* rgb */ color: rgb(55, 31, 130); /* oklch */ color: oklch(34.1% 0.154 286.0);
Tailwind
colors: {
custom: {
50: '#775da7',
500: '#371f82',
950: '#000000',
},
}SCSS
$custom: #371f82; $custom-light: #775da7; $custom-dark: #000000;
JSON
{
"hex": "#371f82",
"rgb": {
"r": 55,
"g": 31,
"b": 130
},
"hsl": {
"h": 254.545,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.34095,
"c": 0.15439,
"h": 286
},
"luminance": 0.03404
}Semantic roles & 50–950 ramp
primary
#371F82
secondary
#9AB548
accent
#E543BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F