#371C8C#371C8C
#371C8C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.170 H 284.3°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #371C8C |
|---|---|
| RGB | rgb(55, 28, 140) |
| HSL | hsl(254, 67%, 33%) |
| HSV | hsv(254, 80%, 55%) |
| CMYK | cmyk(60.7%, 80%, 0%, 45.1%) |
| CIE-LAB | lab(22.07, 42.67, -57.04) |
| CIE-LCH | lch(22.07, 71.24, 306.80°) |
| OKLab | oklab(34.74% 0.042 -0.1644) |
| OKLCH | oklch(34.74% 0.17 284.3) |
| XYZ | xyz(6.7230, 3.5357, 25.1341) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.00
Indigo (survey)
#380282
ΔE00 4.05
Indigo Blue
#3A18B1
ΔE00 5.18
Indigo
#4B0082
ΔE00 5.30
Cobalt Blue
#030AA7
ΔE00 5.43
Midnight Blue
#191970
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371C8C #718C1C
analogous
#1C398C #371C8C #6F1C8C
triadic
#371C8C #8C371C #1C8C37
tetradic
#371C8C #8C1C39 #718C1C #1C8C6F
square
#371C8C #8C1C39 #718C1C #1C8C6F
split-complementary
#371C8C #8C6F1C #398C1C
monochromatic
#0F0826 #231259 #371C8C #4B26BF #6B48DA
Accessibility & contrast
On white
12.30
#371C8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#371C8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371C8C
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371C8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371C8C | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#013D54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #371c8c; /* rgb */ color: rgb(55, 28, 140); /* oklch */ color: oklch(34.7% 0.170 284.3);
Tailwind
colors: {
custom: {
50: '#795caf',
500: '#371c8c',
950: '#000000',
},
}SCSS
$custom: #371c8c; $custom-light: #795caf; $custom-dark: #000000;
JSON
{
"hex": "#371c8c",
"rgb": {
"r": 55,
"g": 28,
"b": 140
},
"hsl": {
"h": 254.464,
"s": 66.667,
"l": 32.941
},
"oklch": {
"l": 0.34741,
"c": 0.16967,
"h": 284.3
},
"luminance": 0.03536
}Semantic roles & 50–950 ramp
primary
#371C8C
secondary
#A0BC48
accent
#EA3EC0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F