#371F80#371F80
#371F80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.152 H 286.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #371F80 |
|---|---|
| RGB | rgb(55, 31, 128) |
| HSL | hsl(255, 61%, 31%) |
| HSV | hsv(255, 76%, 50%) |
| CMYK | cmyk(57%, 75.8%, 0%, 49.8%) |
| CIE-LAB | lab(21.40, 37.46, -50.62) |
| CIE-LCH | lch(21.40, 62.97, 306.50°) |
| OKLab | oklab(33.9% 0.0431 -0.1456) |
| OKLCH | oklch(33.9% 0.152 286.5) |
| XYZ | xyz(5.9607, 3.3504, 20.7505) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.59
Midnight Blue
#191970
ΔE00 4.64
Royal
#0C1793
ΔE00 5.17
Indigo
#4B0082
ΔE00 5.62
Darkblue
#00008B
ΔE00 6.86
Navy
#000080
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F80 #68801F
analogous
#1F3780 #371F80 #671F80
triadic
#371F80 #80371F #1F8037
tetradic
#371F80 #801F37 #68801F #1F8067
square
#371F80 #801F37 #68801F #1F8067
split-complementary
#371F80 #80671F #37801F
monochromatic
#0D071D #22134F #371F80 #4C2BB1 #6947D2
Accessibility & contrast
On white
12.57
#371F80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#371F80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F80
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F80 | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#173A4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #371f80; /* rgb */ color: rgb(55, 31, 128); /* oklch */ color: oklch(33.9% 0.152 286.5);
Tailwind
colors: {
custom: {
50: '#775da6',
500: '#371f80',
950: '#000000',
},
}SCSS
$custom: #371f80; $custom-light: #775da6; $custom-dark: #000000;
JSON
{
"hex": "#371f80",
"rgb": {
"r": 55,
"g": 31,
"b": 128
},
"hsl": {
"h": 254.845,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.33896,
"c": 0.15188,
"h": 286.5
},
"luminance": 0.03351
}Semantic roles & 50–950 ramp
primary
#371F80
secondary
#98B348
accent
#E444BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F