#371A7C#371A7C
#371A7C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.152 H 288.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).
Color values
| HEX | #371A7C |
|---|---|
| RGB | rgb(55, 26, 124) |
| HSL | hsl(258, 65%, 29%) |
| HSV | hsv(258, 79%, 49%) |
| CMYK | cmyk(55.6%, 79%, 0%, 51.4%) |
| CIE-LAB | lab(20.07, 38.89, -50.26) |
| CIE-LCH | lch(20.07, 63.55, 307.73°) |
| OKLab | oklab(32.84% 0.0483 -0.1446) |
| OKLCH | oklch(32.84% 0.152 288.5) |
| XYZ | xyz(5.5820, 3.0060, 19.3510) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.65
Midnight Blue
#191970
ΔE00 4.53
Indigo
#4B0082
ΔE00 4.80
Royal
#0C1793
ΔE00 5.44
Royal Purple (survey)
#4B006E
ΔE00 6.19
Navy
#000080
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371A7C #5F7C1A
analogous
#1A2E7C #371A7C #681A7C
triadic
#371A7C #7C371A #1A7C37
tetradic
#371A7C #7C1A2E #5F7C1A #1A7C68
square
#371A7C #7C1A2E #5F7C1A #1A7C68
split-complementary
#371A7C #7C681A #2E7C1A
monochromatic
#0B0519 #210F49 #371A7C #4D25AF #693BD6
Accessibility & contrast
On white
13.12
#371A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#371A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371A7C
13.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371A7C | 1.00 | 13.12 | 1.60 | 13.12 |
| #FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#1B364A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #371a7c; /* rgb */ color: rgb(55, 26, 124); /* oklch */ color: oklch(32.8% 0.152 288.5);
Tailwind
colors: {
custom: {
50: '#765aa3',
500: '#371a7c',
950: '#000000',
},
}SCSS
$custom: #371a7c; $custom-light: #765aa3; $custom-dark: #000000;
JSON
{
"hex": "#371a7c",
"rgb": {
"r": 55,
"g": 26,
"b": 124
},
"hsl": {
"h": 257.755,
"s": 65.333,
"l": 29.412
},
"oklch": {
"l": 0.32841,
"c": 0.15241,
"h": 288.5
},
"luminance": 0.03006
}Semantic roles & 50–950 ramp
primary
#371A7C
secondary
#8FB042
accent
#E840B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F