#371F9F#371F9F
#371F9F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.189 H 280.4°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).
Color values
| HEX | #371F9F |
|---|---|
| RGB | rgb(55, 31, 159) |
| HSL | hsl(251, 67%, 37%) |
| HSV | hsv(251, 81%, 62%) |
| CMYK | cmyk(65.4%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(24.62, 46.92, -64.55) |
| CIE-LCH | lch(24.62, 79.81, 306.01°) |
| OKLab | oklab(37.12% 0.0344 -0.1863) |
| OKLCH | oklch(37.12% 0.189 280.4) |
| XYZ | xyz(8.3216, 4.2947, 33.1846) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.62
Royal
#0C1793
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.45
Cobalt Blue
#030AA7
ΔE00 4.45
Royal Blue (survey)
#0504AA
ΔE00 4.76
True Blue
#010FCC
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F9F #879F1F
analogous
#1F479F #371F9F #771F9F
triadic
#371F9F #9F371F #1F9F37
tetradic
#371F9F #9F1F47 #879F1F #1F9F77
square
#371F9F #9F1F47 #879F1F #1F9F77
split-complementary
#371F9F #9F771F #479F1F
monochromatic
#140B39 #25156C #371F9F #4929D2 #735ADF
Accessibility & contrast
On white
11.30
#371F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#371F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F9F
11.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F9F | 1.00 | 11.30 | 1.86 | 11.30 |
| #FFFFFF | 11.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #371f9f; /* rgb */ color: rgb(55, 31, 159); /* oklch */ color: oklch(37.1% 0.189 280.4);
Tailwind
colors: {
custom: {
50: '#7d5fbd',
500: '#371f9f',
950: '#000000',
},
}SCSS
$custom: #371f9f; $custom-light: #7d5fbd; $custom-dark: #000000;
JSON
{
"hex": "#371f9f",
"rgb": {
"r": 55,
"g": 31,
"b": 159
},
"hsl": {
"h": 251.25,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.37123,
"c": 0.18947,
"h": 280.4
},
"luminance": 0.04295
}Semantic roles & 50–950 ramp
primary
#371F9F
secondary
#AFC357
accent
#EA3ECA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981