#371A8B#371A8B
#371A8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.170 H 284.8°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).
Color values
| HEX | #371A8B |
|---|---|
| RGB | rgb(55, 26, 139) |
| HSL | hsl(255, 68%, 32%) |
| HSV | hsv(255, 81%, 55%) |
| CMYK | cmyk(60.4%, 81.3%, 0%, 45.5%) |
| CIE-LAB | lab(21.63, 43.34, -57.14) |
| CIE-LCH | lch(21.63, 71.72, 307.18°) |
| OKLab | oklab(34.4% 0.0436 -0.1647) |
| OKLCH | oklch(34.4% 0.17 284.8) |
| XYZ | xyz(6.6037, 3.4147, 24.7322) |
| Luminance | 0.0341 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.63
Royal
#0C1793
ΔE00 4.01
Indigo
#4B0082
ΔE00 4.98
Indigo Blue
#3A18B1
ΔE00 5.31
Cobalt Blue
#030AA7
ΔE00 5.38
Midnight Blue
#191970
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371A8B #6E8B1A
analogous
#1A368B #371A8B #6F1A8B
triadic
#371A8B #8B371A #1A8B37
tetradic
#371A8B #8B1A36 #6E8B1A #1A8B6F
square
#371A8B #8B1A36 #6E8B1A #1A8B6F
split-complementary
#371A8B #8B6F1A #368B1A
monochromatic
#0E0724 #231057 #371A8B #4B24BF #6B43DC
Accessibility & contrast
On white
12.48
#371A8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#371A8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371A8B
12.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371A8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371A8B | 1.00 | 12.48 | 1.68 | 12.48 |
| #FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#033C53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #371a8b; /* rgb */ color: rgb(55, 26, 139); /* oklch */ color: oklch(34.4% 0.170 284.8);
Tailwind
colors: {
custom: {
50: '#795bae',
500: '#371a8b',
950: '#000000',
},
}SCSS
$custom: #371a8b; $custom-light: #795bae; $custom-dark: #000000;
JSON
{
"hex": "#371a8b",
"rgb": {
"r": 55,
"g": 26,
"b": 139
},
"hsl": {
"h": 255.398,
"s": 68.485,
"l": 32.353
},
"oklch": {
"l": 0.34403,
"c": 0.17034,
"h": 284.8
},
"luminance": 0.03415
}Semantic roles & 50–950 ramp
primary
#371A8B
secondary
#9EBD44
accent
#EB3CBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F