#371F88#371F88
#371F88 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.162 H 284.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #371F88 |
|---|---|
| RGB | rgb(55, 31, 136) |
| HSL | hsl(254, 63%, 33%) |
| HSV | hsv(254, 77%, 53%) |
| CMYK | cmyk(59.6%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(22.19, 39.93, -54.34) |
| CIE-LCH | lch(22.19, 67.44, 306.30°) |
| OKLab | oklab(34.7% 0.041 -0.1565) |
| OKLCH | oklch(34.7% 0.162 284.7) |
| XYZ | xyz(6.5081, 3.5694, 23.6338) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.40
Indigo (survey)
#380282
ΔE00 4.53
Midnight Blue
#191970
ΔE00 5.28
Indigo
#4B0082
ΔE00 5.66
Indigo Blue
#3A18B1
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F88 #70881F
analogous
#1F3C88 #371F88 #6B1F88
triadic
#371F88 #88371F #1F8837
tetradic
#371F88 #881F3C #70881F #1F886B
square
#371F88 #881F3C #70881F #1F886B
split-complementary
#371F88 #886B1F #3C881F
monochromatic
#0F0824 #231456 #371F88 #4B2ABA #6B4BD6
Accessibility & contrast
On white
12.25
#371F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#371F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F88
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F88 | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#0A3D52
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #371f88; /* rgb */ color: rgb(55, 31, 136); /* oklch */ color: oklch(34.7% 0.162 284.7);
Tailwind
colors: {
custom: {
50: '#785eac',
500: '#371f88',
950: '#000000',
},
}SCSS
$custom: #371f88; $custom-light: #785eac; $custom-dark: #000000;
JSON
{
"hex": "#371f88",
"rgb": {
"r": 55,
"g": 31,
"b": 136
},
"hsl": {
"h": 253.714,
"s": 62.874,
"l": 32.745
},
"oklch": {
"l": 0.347,
"c": 0.16183,
"h": 284.7
},
"luminance": 0.0357
}Semantic roles & 50–950 ramp
primary
#371F88
secondary
#9FB94A
accent
#E642C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F