#371D8F#371D8F
#371D8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.172 H 283.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #371D8F |
|---|---|
| RGB | rgb(55, 29, 143) |
| HSL | hsl(254, 66%, 34%) |
| HSV | hsv(254, 80%, 56%) |
| CMYK | cmyk(61.5%, 79.7%, 0%, 43.9%) |
| CIE-LAB | lab(22.56, 43.08, -58.11) |
| CIE-LCH | lch(22.56, 72.33, 306.55°) |
| OKLab | oklab(35.18% 0.0404 -0.1675) |
| OKLCH | oklch(35.18% 0.172 283.6) |
| XYZ | xyz(6.9713, 3.6737, 26.3230) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.91
Indigo (survey)
#380282
ΔE00 4.40
Indigo Blue
#3A18B1
ΔE00 4.76
Cobalt Blue
#030AA7
ΔE00 5.21
Royal Blue (survey)
#0504AA
ΔE00 5.59
Indigo
#4B0082
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371D8F #758F1D
analogous
#1D3C8F #371D8F #701D8F
triadic
#371D8F #8F371D #1D8F37
tetradic
#371D8F #8F1D3C #758F1D #1D8F70
square
#371D8F #8F1D3C #758F1D #1D8F70
split-complementary
#371D8F #8F701D #3C8F1D
monochromatic
#100829 #23135C #371D8F #4B27C2 #6C4CDB
Accessibility & contrast
On white
12.11
#371D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#371D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371D8F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371D8F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #371d8f; /* rgb */ color: rgb(55, 29, 143); /* oklch */ color: oklch(35.2% 0.172 283.6);
Tailwind
colors: {
custom: {
50: '#7a5db1',
500: '#371d8f',
950: '#000000',
},
}SCSS
$custom: #371d8f; $custom-light: #7a5db1; $custom-dark: #000000;
JSON
{
"hex": "#371d8f",
"rgb": {
"r": 55,
"g": 29,
"b": 143
},
"hsl": {
"h": 253.684,
"s": 66.279,
"l": 33.725
},
"oklch": {
"l": 0.35176,
"c": 0.17231,
"h": 283.6
},
"luminance": 0.03674
}Semantic roles & 50–950 ramp
primary
#371D8F
secondary
#A3BD4B
accent
#E93FC2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980