#371F85#371F85
#371F85 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.158 H 285.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #371F85 |
|---|---|
| RGB | rgb(55, 31, 133) |
| HSL | hsl(254, 62%, 32%) |
| HSV | hsv(254, 77%, 52%) |
| CMYK | cmyk(58.6%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(21.89, 39.00, -52.96) |
| CIE-LCH | lch(21.89, 65.77, 306.37°) |
| OKLab | oklab(34.4% 0.0418 -0.1525) |
| OKLCH | oklch(34.4% 0.158 285.3) |
| XYZ | xyz(6.2979, 3.4853, 22.5266) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.51
Royal
#0C1793
ΔE00 4.65
Midnight Blue
#191970
ΔE00 5.01
Indigo
#4B0082
ΔE00 5.61
Indigo Blue
#3A18B1
ΔE00 6.35
Cobalt Blue
#030AA7
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F85 #6D851F
analogous
#1F3A85 #371F85 #6A1F85
triadic
#371F85 #85371F #1F8537
tetradic
#371F85 #851F3A #6D851F #1F856A
square
#371F85 #851F3A #6D851F #1F856A
split-complementary
#371F85 #856A1F #3A851F
monochromatic
#0E0822 #221353 #371F85 #4C2BB7 #6A4AD5
Accessibility & contrast
On white
12.37
#371F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#371F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F85
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F85 | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003788
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#103B50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #371f85; /* rgb */ color: rgb(55, 31, 133); /* oklch */ color: oklch(34.4% 0.158 285.3);
Tailwind
colors: {
custom: {
50: '#785eaa',
500: '#371f85',
950: '#000000',
},
}SCSS
$custom: #371f85; $custom-light: #785eaa; $custom-dark: #000000;
JSON
{
"hex": "#371f85",
"rgb": {
"r": 55,
"g": 31,
"b": 133
},
"hsl": {
"h": 254.118,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.34396,
"c": 0.15812,
"h": 285.3
},
"luminance": 0.03486
}Semantic roles & 50–950 ramp
primary
#371F85
secondary
#9DB749
accent
#E543BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F