#371D7F#371D7F
#371D7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.153 H 287.1°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #371D7F |
|---|---|
| RGB | rgb(55, 29, 127) |
| HSL | hsl(256, 63%, 31%) |
| HSV | hsv(256, 77%, 50%) |
| CMYK | cmyk(56.7%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.92, 38.23, -50.77) |
| CIE-LCH | lch(20.92, 63.56, 306.98°) |
| OKLab | oklab(33.53% 0.045 -0.1461) |
| OKLCH | oklch(33.53% 0.153 287.1) |
| XYZ | xyz(5.8445, 3.2229, 20.3887) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.16
Midnight Blue
#191970
ΔE00 4.59
Royal
#0C1793
ΔE00 5.17
Indigo
#4B0082
ΔE00 5.26
Darkblue
#00008B
ΔE00 6.60
Navy
#000080
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371D7F #657F1D
analogous
#1D347F #371D7F #681D7F
triadic
#371D7F #7F371D #1D7F37
tetradic
#371D7F #7F1D34 #657F1D #1D7F68
square
#371D7F #7F1D34 #657F1D #1D7F68
split-complementary
#371D7F #7F681D #347F1D
monochromatic
#0C061B #21124D #371D7F #4D28B1 #6942D4
Accessibility & contrast
On white
12.77
#371D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#371D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371D7F
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371D7F | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#18384C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #371d7f; /* rgb */ color: rgb(55, 29, 127); /* oklch */ color: oklch(33.5% 0.153 287.1);
Tailwind
colors: {
custom: {
50: '#775ca5',
500: '#371d7f',
950: '#000000',
},
}SCSS
$custom: #371d7f; $custom-light: #775ca5; $custom-dark: #000000;
JSON
{
"hex": "#371d7f",
"rgb": {
"r": 55,
"g": 29,
"b": 127
},
"hsl": {
"h": 255.918,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.33527,
"c": 0.15285,
"h": 287.1
},
"luminance": 0.03223
}Semantic roles & 50–950 ramp
primary
#371D7F
secondary
#95B245
accent
#E642BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F