#371F7F#371F7F
#371F7F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.151 H 286.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).
Color values
| HEX | #371F7F |
|---|---|
| RGB | rgb(55, 31, 127) |
| HSL | hsl(255, 61%, 31%) |
| HSV | hsv(255, 76%, 50%) |
| CMYK | cmyk(56.7%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(21.30, 37.15, -50.15) |
| CIE-LCH | lch(21.30, 62.41, 306.53°) |
| OKLab | oklab(33.8% 0.0433 -0.1443) |
| OKLCH | oklch(33.8% 0.151 286.7) |
| XYZ | xyz(5.8952, 3.3242, 20.4056) |
| Luminance | 0.0333 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.58
Indigo (survey)
#380282
ΔE00 4.62
Royal
#0C1793
ΔE00 5.28
Indigo
#4B0082
ΔE00 5.64
Darkblue
#00008B
ΔE00 6.93
Navy
#000080
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F7F #677F1F
analogous
#1F377F #371F7F #671F7F
triadic
#371F7F #7F371F #1F7F37
tetradic
#371F7F #7F1F37 #677F1F #1F7F67
square
#371F7F #7F1F37 #677F1F #1F7F67
split-complementary
#371F7F #7F671F #377F1F
monochromatic
#0C071D #22134E #371F7F #4C2BB0 #6946D2
Accessibility & contrast
On white
12.61
#371F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#371F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F7F
12.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F7F | 1.00 | 12.61 | 1.67 | 12.61 |
| #FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#18394D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #371f7f; /* rgb */ color: rgb(55, 31, 127); /* oklch */ color: oklch(33.8% 0.151 286.7);
Tailwind
colors: {
custom: {
50: '#765da5',
500: '#371f7f',
950: '#000000',
},
}SCSS
$custom: #371f7f; $custom-light: #765da5; $custom-dark: #000000;
JSON
{
"hex": "#371f7f",
"rgb": {
"r": 55,
"g": 31,
"b": 127
},
"hsl": {
"h": 255,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.33797,
"c": 0.15063,
"h": 286.7
},
"luminance": 0.03325
}Semantic roles & 50–950 ramp
primary
#371F7F
secondary
#97B248
accent
#E444BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F