#371F7E#371F7E
#371F7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.149 H 287.0°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).
Color values
| HEX | #371F7E |
|---|---|
| RGB | rgb(55, 31, 126) |
| HSL | hsl(255, 61%, 31%) |
| HSV | hsv(255, 75%, 49%) |
| CMYK | cmyk(56.3%, 75.4%, 0%, 50.6%) |
| CIE-LAB | lab(21.20, 36.84, -49.67) |
| CIE-LCH | lch(21.20, 61.84, 306.57°) |
| OKLab | oklab(33.7% 0.0436 -0.1429) |
| OKLCH | oklch(33.7% 0.149 287) |
| XYZ | xyz(5.8303, 3.2982, 20.0640) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.53
Indigo (survey)
#380282
ΔE00 4.67
Royal
#0C1793
ΔE00 5.41
Indigo
#4B0082
ΔE00 5.66
Darkblue
#00008B
ΔE00 7.00
Dark Royal Blue
#02066F
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F7E #667E1F
analogous
#1F367E #371F7E #661F7E
triadic
#371F7E #7E371F #1F7E37
tetradic
#371F7E #7E1F36 #667E1F #1F7E66
square
#371F7E #7E1F36 #667E1F #1F7E66
split-complementary
#371F7E #7E661F #367E1F
monochromatic
#0C071C #22134D #371F7E #4C2BAF #6946D1
Accessibility & contrast
On white
12.65
#371F7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#371F7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F7E
12.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F7E | 1.00 | 12.65 | 1.66 | 12.65 |
| #FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#19394C
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #371f7e; /* rgb */ color: rgb(55, 31, 126); /* oklch */ color: oklch(33.7% 0.149 287.0);
Tailwind
colors: {
custom: {
50: '#765da4',
500: '#371f7e',
950: '#000000',
},
}SCSS
$custom: #371f7e; $custom-light: #765da4; $custom-dark: #000000;
JSON
{
"hex": "#371f7e",
"rgb": {
"r": 55,
"g": 31,
"b": 126
},
"hsl": {
"h": 255.158,
"s": 60.51,
"l": 30.784
},
"oklch": {
"l": 0.33699,
"c": 0.14937,
"h": 287
},
"luminance": 0.03299
}Semantic roles & 50–950 ramp
primary
#371F7E
secondary
#96B148
accent
#E444BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F