#371C7D#371C7D
#371C7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.151 H 287.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).
Color values
| HEX | #371C7D |
|---|---|
| RGB | rgb(55, 28, 125) |
| HSL | hsl(257, 63%, 30%) |
| HSV | hsv(257, 78%, 49%) |
| CMYK | cmyk(56%, 77.6%, 0%, 51%) |
| CIE-LAB | lab(20.53, 38.15, -50.14) |
| CIE-LCH | lch(20.53, 63.00, 307.27°) |
| OKLab | oklab(33.2% 0.0464 -0.1442) |
| OKLCH | oklch(33.2% 0.151 287.8) |
| XYZ | xyz(5.6914, 3.1231, 19.7010) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.02
Midnight Blue
#191970
ΔE00 4.50
Indigo
#4B0082
ΔE00 5.12
Royal
#0C1793
ΔE00 5.37
Royal Purple (survey)
#4B006E
ΔE00 6.54
Darkblue
#00008B
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371C7D #627D1C
analogous
#1C317D #371C7D #681C7D
triadic
#371C7D #7D371C #1C7D37
tetradic
#371C7D #7D1C31 #627D1C #1C7D68
square
#371C7D #7D1C31 #627D1C #1C7D68
split-complementary
#371C7D #7D681C #317D1C
monochromatic
#0B0619 #21114B #371C7D #4D27AF #693FD4
Accessibility & contrast
On white
12.93
#371C7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#371C7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371C7D
12.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371C7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371C7D | 1.00 | 12.93 | 1.62 | 12.93 |
| #FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1A374B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #371c7d; /* rgb */ color: rgb(55, 28, 125); /* oklch */ color: oklch(33.2% 0.151 287.8);
Tailwind
colors: {
custom: {
50: '#765ba4',
500: '#371c7d',
950: '#000000',
},
}SCSS
$custom: #371c7d; $custom-light: #765ba4; $custom-dark: #000000;
JSON
{
"hex": "#371c7d",
"rgb": {
"r": 55,
"g": 28,
"b": 125
},
"hsl": {
"h": 256.701,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.33196,
"c": 0.15148,
"h": 287.8
},
"luminance": 0.03123
}Semantic roles & 50–950 ramp
primary
#371C7D
secondary
#92B144
accent
#E641B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F