#371F89#371F89
#371F89 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.163 H 284.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).
Color values
| HEX | #371F89 |
|---|---|
| RGB | rgb(55, 31, 137) |
| HSL | hsl(254, 63%, 33%) |
| HSV | hsv(254, 77%, 54%) |
| CMYK | cmyk(59.9%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(22.29, 40.24, -54.80) |
| CIE-LCH | lch(22.29, 67.99, 306.29°) |
| OKLab | oklab(34.8% 0.0407 -0.1579) |
| OKLCH | oklch(34.8% 0.163 284.5) |
| XYZ | xyz(6.5795, 3.5979, 24.0098) |
| Luminance | 0.0360 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.32
Indigo (survey)
#380282
ΔE00 4.55
Midnight Blue
#191970
ΔE00 5.38
Indigo
#4B0082
ΔE00 5.68
Indigo Blue
#3A18B1
ΔE00 5.73
Cobalt Blue
#030AA7
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#371F89 #71891F
analogous
#1F3C89 #371F89 #6C1F89
triadic
#371F89 #89371F #1F8937
tetradic
#371F89 #891F3C #71891F #1F896C
square
#371F89 #891F3C #71891F #1F896C
split-complementary
#371F89 #896C1F #3C891F
monochromatic
#0F0825 #231457 #371F89 #4B2ABB #6B4CD6
Accessibility & contrast
On white
12.21
#371F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#371F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #371F89
12.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##371F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##371F89 | 1.00 | 12.21 | 1.72 | 12.21 |
| #FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#073D53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #371f89; /* rgb */ color: rgb(55, 31, 137); /* oklch */ color: oklch(34.8% 0.163 284.5);
Tailwind
colors: {
custom: {
50: '#785eac',
500: '#371f89',
950: '#000000',
},
}SCSS
$custom: #371f89; $custom-light: #785eac; $custom-dark: #000000;
JSON
{
"hex": "#371f89",
"rgb": {
"r": 55,
"g": 31,
"b": 137
},
"hsl": {
"h": 253.585,
"s": 63.095,
"l": 32.941
},
"oklch": {
"l": 0.34802,
"c": 0.16306,
"h": 284.5
},
"luminance": 0.03598
}Semantic roles & 50–950 ramp
primary
#371F89
secondary
#A0B94B
accent
#E642C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F