#372181#372181
#372181 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.151 H 285.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).
Color values
| HEX | #372181 |
|---|---|
| RGB | rgb(55, 33, 129) |
| HSL | hsl(254, 59%, 32%) |
| HSV | hsv(254, 74%, 51%) |
| CMYK | cmyk(57.4%, 74.4%, 0%, 49.4%) |
| CIE-LAB | lab(21.89, 36.66, -50.44) |
| CIE-LCH | lch(21.89, 62.36, 306.01°) |
| OKLab | oklab(34.27% 0.0411 -0.1451) |
| OKLCH | oklch(34.27% 0.151 285.8) |
| XYZ | xyz(6.0807, 3.4846, 21.1168) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.75
Indigo (survey)
#380282
ΔE00 5.04
Royal
#0C1793
ΔE00 5.21
Indigo
#4B0082
ΔE00 6.02
Indigo Blue
#3A18B1
ΔE00 7.09
Darkblue
#00008B
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#372181 #6B8121
analogous
#213B81 #372181 #672181
triadic
#372181 #813721 #218137
tetradic
#372181 #81213B #6B8121 #218167
square
#372181 #81213B #6B8121 #218167
split-complementary
#372181 #816721 #3B8121
monochromatic
#0D0820 #221550 #372181 #4C2DB2 #6A4BD1
Accessibility & contrast
On white
12.37
#372181 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#372181 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #372181
12.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##372181 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##372181 | 1.00 | 12.37 | 1.70 | 12.37 |
| #FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#153B4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #372181; /* rgb */ color: rgb(55, 33, 129); /* oklch */ color: oklch(34.3% 0.151 285.8);
Tailwind
colors: {
custom: {
50: '#775fa6',
500: '#372181',
950: '#000000',
},
}SCSS
$custom: #372181; $custom-light: #775fa6; $custom-dark: #000000;
JSON
{
"hex": "#372181",
"rgb": {
"r": 55,
"g": 33,
"b": 129
},
"hsl": {
"h": 253.75,
"s": 59.259,
"l": 31.765
},
"oklch": {
"l": 0.34274,
"c": 0.15086,
"h": 285.8
},
"luminance": 0.03485
}Semantic roles & 50–950 ramp
primary
#372181
secondary
#9BB44A
accent
#E245BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F