#371B84#371B84
#371B84 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.161 H 286.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #371B84 |
|---|---|
| RGB | rgb(55, 27, 132) |
| HSL | hsl(256, 66%, 31%) |
| HSV | hsv(256, 80%, 52%) |
| CMYK | cmyk(58.3%, 79.5%, 0%, 48.2%) |
| CIE-LAB | lab(21.06, 40.77, -53.69) |
| CIE-LCH | lch(21.06, 67.42, 307.21°) |
| OKLab | oklab(33.78% 0.0451 -0.1546) |
| OKLCH | oklch(33.78% 0.161 286.3) |
| XYZ | xyz(6.1311, 3.2617, 22.1318) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.63
Royal
#0C1793
ΔE00 4.56
Indigo
#4B0082
ΔE00 4.91
Midnight Blue
#191970
ΔE00 4.99
Darkblue
#00008B
ΔE00 6.01
Navy
#000080
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371B84 #68841B
analogous
#1B3384 #371B84 #6B1B84
triadic
#371B84 #84371B #1B8437
tetradic
#371B84 #841B33 #68841B #1B846B
square
#371B84 #841B33 #68841B #1B846B
split-complementary
#371B84 #846B1B #33841B
monochromatic
#0D061E #221151 #371B84 #4C25B7 #6941D8
Accessibility & contrast
On white
12.71
#371B84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#371B84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371B84
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371B84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371B84 | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#12394F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #371b84; /* rgb */ color: rgb(55, 27, 132); /* oklch */ color: oklch(33.8% 0.161 286.3);
Tailwind
colors: {
custom: {
50: '#785ba9',
500: '#371b84',
950: '#000000',
},
}SCSS
$custom: #371b84; $custom-light: #785ba9; $custom-dark: #000000;
JSON
{
"hex": "#371b84",
"rgb": {
"r": 55,
"g": 27,
"b": 132
},
"hsl": {
"h": 256,
"s": 66.038,
"l": 31.176
},
"oklch": {
"l": 0.33784,
"c": 0.16105,
"h": 286.3
},
"luminance": 0.03262
}Semantic roles & 50–950 ramp
primary
#371B84
secondary
#98B743
accent
#E93FBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F