#371E7E#371E7E
#371E7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 287.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #371E7E |
|---|---|
| RGB | rgb(55, 30, 126) |
| HSL | hsl(256, 62%, 31%) |
| HSV | hsv(256, 76%, 49%) |
| CMYK | cmyk(56.3%, 76.2%, 0%, 50.6%) |
| CIE-LAB | lab(21.01, 37.39, -49.99) |
| CIE-LCH | lch(21.01, 62.43, 306.80°) |
| OKLab | oklab(33.56% 0.0444 -0.1438) |
| OKLCH | oklch(33.56% 0.151 287.2) |
| XYZ | xyz(5.8046, 3.2468, 20.0555) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.43
Midnight Blue
#191970
ΔE00 4.53
Royal
#0C1793
ΔE00 5.34
Indigo
#4B0082
ΔE00 5.46
Darkblue
#00008B
ΔE00 6.84
Dark Royal Blue
#02066F
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371E7E #657E1E
analogous
#1E357E #371E7E #671E7E
triadic
#371E7E #7E371E #1E7E37
tetradic
#371E7E #7E1E35 #657E1E #1E7E67
square
#371E7E #7E1E35 #657E1E #1E7E67
split-complementary
#371E7E #7E671E #357E1E
monochromatic
#0C061B #21124D #371E7E #4D2AAF #6944D2
Accessibility & contrast
On white
12.73
#371E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#371E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371E7E
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371E7E | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#19384C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #371e7e; /* rgb */ color: rgb(55, 30, 126); /* oklch */ color: oklch(33.6% 0.151 287.2);
Tailwind
colors: {
custom: {
50: '#765da4',
500: '#371e7e',
950: '#000000',
},
}SCSS
$custom: #371e7e; $custom-light: #765da4; $custom-dark: #000000;
JSON
{
"hex": "#371e7e",
"rgb": {
"r": 55,
"g": 30,
"b": 126
},
"hsl": {
"h": 255.625,
"s": 61.538,
"l": 30.588
},
"oklch": {
"l": 0.33561,
"c": 0.15051,
"h": 287.2
},
"luminance": 0.03247
}Semantic roles & 50–950 ramp
primary
#371E7E
secondary
#95B147
accent
#E543BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F