#371C7F#371C7F
#371C7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.154 H 287.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #371C7F |
|---|---|
| RGB | rgb(55, 28, 127) |
| HSL | hsl(256, 64%, 30%) |
| HSV | hsv(256, 78%, 50%) |
| CMYK | cmyk(56.7%, 78%, 0%, 50.2%) |
| CIE-LAB | lab(20.73, 38.76, -51.08) |
| CIE-LCH | lch(20.73, 64.12, 307.19°) |
| OKLab | oklab(33.4% 0.0458 -0.147) |
| OKLCH | oklch(33.4% 0.154 287.3) |
| XYZ | xyz(5.8204, 3.1747, 20.3806) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.93
Midnight Blue
#191970
ΔE00 4.61
Indigo
#4B0082
ΔE00 5.08
Royal
#0C1793
ΔE00 5.13
Darkblue
#00008B
ΔE00 6.45
Navy
#000080
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371C7F #647F1C
analogous
#1C327F #371C7F #691C7F
triadic
#371C7F #7F371C #1C7F37
tetradic
#371C7F #7F1C32 #647F1C #1C7F69
square
#371C7F #7F1C32 #647F1C #1C7F69
split-complementary
#371C7F #7F691C #327F1C
monochromatic
#0C061B #21114D #371C7F #4D27B1 #6940D5
Accessibility & contrast
On white
12.84
#371C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#371C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371C7F
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371C7F | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#18384C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #371c7f; /* rgb */ color: rgb(55, 28, 127); /* oklch */ color: oklch(33.4% 0.154 287.3);
Tailwind
colors: {
custom: {
50: '#775ca5',
500: '#371c7f',
950: '#000000',
},
}SCSS
$custom: #371c7f; $custom-light: #775ca5; $custom-dark: #000000;
JSON
{
"hex": "#371c7f",
"rgb": {
"r": 55,
"g": 28,
"b": 127
},
"hsl": {
"h": 256.364,
"s": 63.871,
"l": 30.392
},
"oklch": {
"l": 0.33397,
"c": 0.15394,
"h": 287.3
},
"luminance": 0.03175
}Semantic roles & 50–950 ramp
primary
#371C7F
secondary
#94B344
accent
#E741BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F