#371F9C#371F9C
#371F9C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.186 H 280.9°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #371F9C |
|---|---|
| RGB | rgb(55, 31, 156) |
| HSL | hsl(252, 67%, 37%) |
| HSV | hsv(252, 80%, 61%) |
| CMYK | cmyk(64.7%, 80.1%, 0%, 38.8%) |
| CIE-LAB | lab(24.30, 46.02, -63.26) |
| CIE-LCH | lch(24.30, 78.23, 306.03°) |
| OKLab | oklab(36.8% 0.0353 -0.1826) |
| OKLCH | oklch(36.8% 0.186 280.9) |
| XYZ | xyz(8.0644, 4.1919, 31.8302) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.01
Royal
#0C1793
ΔE00 4.12
Cobalt Blue
#030AA7
ΔE00 4.54
Ultramarine
#2000B1
ΔE00 4.66
Royal Blue (survey)
#0504AA
ΔE00 4.88
Indigo (survey)
#380282
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F9C #849C1F
analogous
#1F469C #371F9C #761F9C
triadic
#371F9C #9C371F #1F9C37
tetradic
#371F9C #9C1F46 #849C1F #1F9C76
square
#371F9C #9C1F46 #849C1F #1F9C76
split-complementary
#371F9C #9C761F #469C1F
monochromatic
#130B36 #251569 #371F9C #4929CF #7158DE
Accessibility & contrast
On white
11.42
#371F9C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#371F9C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F9C
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F9C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F9C | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #371f9c; /* rgb */ color: rgb(55, 31, 156); /* oklch */ color: oklch(36.8% 0.186 280.9);
Tailwind
colors: {
custom: {
50: '#7c5fba',
500: '#371f9c',
950: '#000000',
},
}SCSS
$custom: #371f9c; $custom-light: #7c5fba; $custom-dark: #000000;
JSON
{
"hex": "#371f9c",
"rgb": {
"r": 55,
"g": 31,
"b": 156
},
"hsl": {
"h": 251.52,
"s": 66.845,
"l": 36.667
},
"oklch": {
"l": 0.36799,
"c": 0.18594,
"h": 280.9
},
"luminance": 0.04192
}Semantic roles & 50–950 ramp
primary
#371F9C
secondary
#ADC155
accent
#EA3EC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981