#372182#372182
#372182 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.152 H 285.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #372182 |
|---|---|
| RGB | rgb(55, 33, 130) |
| HSL | hsl(254, 60%, 32%) |
| HSV | hsv(254, 75%, 51%) |
| CMYK | cmyk(57.7%, 74.6%, 0%, 49%) |
| CIE-LAB | lab(21.99, 36.98, -50.91) |
| CIE-LCH | lch(21.99, 62.92, 305.99°) |
| OKLab | oklab(34.37% 0.0409 -0.1465) |
| OKLCH | oklch(34.37% 0.152 285.6) |
| XYZ | xyz(6.1475, 3.5113, 21.4686) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.81
Indigo (survey)
#380282
ΔE00 5.02
Royal
#0C1793
ΔE00 5.10
Indigo
#4B0082
ΔE00 6.01
Indigo Blue
#3A18B1
ΔE00 6.93
Darkblue
#00008B
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#372182 #6C8221
analogous
#213C82 #372182 #682182
triadic
#372182 #823721 #218237
tetradic
#372182 #82213C #6C8221 #218268
square
#372182 #82213C #6C8221 #218268
split-complementary
#372182 #826821 #3C8221
monochromatic
#0E0820 #221551 #372182 #4C2DB3 #6A4CD2
Accessibility & contrast
On white
12.34
#372182 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#372182 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #372182
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##372182 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##372182 | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003280
Tritanopia (blue-blind)
#143B4F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #372182; /* rgb */ color: rgb(55, 33, 130); /* oklch */ color: oklch(34.4% 0.152 285.6);
Tailwind
colors: {
custom: {
50: '#775fa7',
500: '#372182',
950: '#000000',
},
}SCSS
$custom: #372182; $custom-light: #775fa7; $custom-dark: #000000;
JSON
{
"hex": "#372182",
"rgb": {
"r": 55,
"g": 33,
"b": 130
},
"hsl": {
"h": 253.608,
"s": 59.509,
"l": 31.961
},
"oklch": {
"l": 0.34372,
"c": 0.15212,
"h": 285.6
},
"luminance": 0.03512
}Semantic roles & 50–950 ramp
primary
#372182
secondary
#9CB44A
accent
#E345BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F