#371F9A#371F9A
#371F9A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.184 H 281.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #371F9A |
|---|---|
| RGB | rgb(55, 31, 154) |
| HSL | hsl(252, 66%, 36%) |
| HSV | hsv(252, 80%, 60%) |
| CMYK | cmyk(64.3%, 79.9%, 0%, 39.6%) |
| CIE-LAB | lab(24.08, 45.42, -62.39) |
| CIE-LCH | lch(24.08, 77.17, 306.05°) |
| OKLab | oklab(36.58% 0.0359 -0.18) |
| OKLCH | oklch(36.58% 0.184 281.3) |
| XYZ | xyz(7.8964, 4.1247, 30.9456) |
| Luminance | 0.0413 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.28
Royal
#0C1793
ΔE00 4.04
Cobalt Blue
#030AA7
ΔE00 4.63
Ultramarine
#2000B1
ΔE00 4.81
Royal Blue (survey)
#0504AA
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F9A #829A1F
analogous
#1F459A #371F9A #751F9A
triadic
#371F9A #9A371F #1F9A37
tetradic
#371F9A #9A1F45 #829A1F #1F9A75
square
#371F9A #9A1F45 #829A1F #1F9A75
split-complementary
#371F9A #9A751F #459A1F
monochromatic
#130A34 #251567 #371F9A #4929CD #7156DD
Accessibility & contrast
On white
11.51
#371F9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#371F9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F9A
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F9A | 1.00 | 11.51 | 1.83 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #371f9a; /* rgb */ color: rgb(55, 31, 154); /* oklch */ color: oklch(36.6% 0.184 281.3);
Tailwind
colors: {
custom: {
50: '#7c5fb9',
500: '#371f9a',
950: '#000000',
},
}SCSS
$custom: #371f9a; $custom-light: #7c5fb9; $custom-dark: #000000;
JSON
{
"hex": "#371f9a",
"rgb": {
"r": 55,
"g": 31,
"b": 154
},
"hsl": {
"h": 251.707,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.36584,
"c": 0.18357,
"h": 281.3
},
"luminance": 0.04125
}Semantic roles & 50–950 ramp
primary
#371F9A
secondary
#ABC154
accent
#E93EC8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981