#371F6F#371F6F
#371F6F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.130 H 291.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #371F6F |
|---|---|
| RGB | rgb(55, 31, 111) |
| HSL | hsl(258, 56%, 28%) |
| HSV | hsv(258, 72%, 44%) |
| CMYK | cmyk(50.5%, 72.1%, 0%, 56.5%) |
| CIE-LAB | lab(19.80, 32.21, -42.35) |
| CIE-LCH | lch(19.80, 53.20, 307.25°) |
| OKLab | oklab(32.27% 0.0468 -0.1214) |
| OKLCH | oklch(32.27% 0.13 291.1) |
| XYZ | xyz(4.9340, 2.9397, 15.3433) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.65
Indigo (survey)
#380282
ΔE00 6.02
Dark Indigo
#1F0954
ΔE00 6.48
Indigo
#4B0082
ΔE00 6.57
Royal Purple (survey)
#4B006E
ΔE00 6.59
Dark Royal Blue
#02066F
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F6F #576F1F
analogous
#1F2F6F #371F6F #5F1F6F
triadic
#371F6F #6F371F #1F6F37
tetradic
#371F6F #6F1F2F #576F1F #1F6F5F
square
#371F6F #6F1F2F #576F1F #1F6F5F
split-complementary
#371F6F #6F5F1F #2F6F1F
monochromatic
#0C0718 #1F123F #371F6F #4F2C9F #693FC9
Accessibility & contrast
On white
13.22
#371F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#371F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F6F
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F6F | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#253344
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #371f6f; /* rgb */ color: rgb(55, 31, 111); /* oklch */ color: oklch(32.3% 0.130 291.1);
Tailwind
colors: {
custom: {
50: '#745d99',
500: '#371f6f',
950: '#000000',
},
}SCSS
$custom: #371f6f; $custom-light: #745d99; $custom-dark: #000000;
JSON
{
"hex": "#371f6f",
"rgb": {
"r": 55,
"g": 31,
"b": 111
},
"hsl": {
"h": 258,
"s": 56.338,
"l": 27.843
},
"oklch": {
"l": 0.32271,
"c": 0.1301,
"h": 291.1
},
"luminance": 0.0294
}Semantic roles & 50–950 ramp
primary
#371F6F
secondary
#87A347
accent
#E048B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E