#371F9E#371F9E
#371F9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.188 H 280.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).
Color values
| HEX | #371F9E |
|---|---|
| RGB | rgb(55, 31, 158) |
| HSL | hsl(251, 67%, 37%) |
| HSV | hsv(251, 80%, 62%) |
| CMYK | cmyk(65.2%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(24.51, 46.62, -64.12) |
| CIE-LCH | lch(24.51, 79.28, 306.02°) |
| OKLab | oklab(37.02% 0.0347 -0.1851) |
| OKLCH | oklch(37.02% 0.188 280.6) |
| XYZ | xyz(8.2351, 4.2602, 32.7294) |
| Luminance | 0.0426 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.75
Royal
#0C1793
ΔE00 4.21
Cobalt Blue
#030AA7
ΔE00 4.48
Ultramarine
#2000B1
ΔE00 4.51
Royal Blue (survey)
#0504AA
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 5.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F9E #869E1F
analogous
#1F469E #371F9E #771F9E
triadic
#371F9E #9E371F #1F9E37
tetradic
#371F9E #9E1F46 #869E1F #1F9E77
square
#371F9E #9E1F46 #869E1F #1F9E77
split-complementary
#371F9E #9E771F #469E1F
monochromatic
#130B38 #25156B #371F9E #4929D1 #7259DE
Accessibility & contrast
On white
11.34
#371F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#371F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F9E
11.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F9E | 1.00 | 11.34 | 1.85 | 11.34 |
| #FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00359C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #371f9e; /* rgb */ color: rgb(55, 31, 158); /* oklch */ color: oklch(37.0% 0.188 280.6);
Tailwind
colors: {
custom: {
50: '#7d5fbc',
500: '#371f9e',
950: '#000000',
},
}SCSS
$custom: #371f9e; $custom-light: #7d5fbc; $custom-dark: #000000;
JSON
{
"hex": "#371f9e",
"rgb": {
"r": 55,
"g": 31,
"b": 158
},
"hsl": {
"h": 251.339,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.37015,
"c": 0.1883,
"h": 280.6
},
"luminance": 0.04261
}Semantic roles & 50–950 ramp
primary
#371F9E
secondary
#AEC256
accent
#EA3ECA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981