#372186#372186
#372186 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.157 H 284.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #372186 |
|---|---|
| RGB | rgb(55, 33, 134) |
| HSL | hsl(253, 60%, 33%) |
| HSV | hsv(253, 75%, 53%) |
| CMYK | cmyk(59%, 75.4%, 0%, 47.5%) |
| CIE-LAB | lab(22.38, 38.23, -52.79) |
| CIE-LCH | lch(22.38, 65.18, 305.91°) |
| OKLab | oklab(34.77% 0.04 -0.152) |
| OKLCH | oklch(34.77% 0.157 284.7) |
| XYZ | xyz(6.4212, 3.6208, 22.9102) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 4.97
Midnight Blue
#191970
ΔE00 5.13
Indigo
#4B0082
ΔE00 6.01
Indigo Blue
#3A18B1
ΔE00 6.30
Cobalt Blue
#030AA7
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#372186 #708621
analogous
#213E86 #372186 #692186
triadic
#372186 #863721 #218637
tetradic
#372186 #86213E #708621 #218669
square
#372186 #86213E #708621 #218669
split-complementary
#372186 #866921 #3E8621
monochromatic
#0F0924 #231555 #372186 #4B2DB7 #6B4ED3
Accessibility & contrast
On white
12.18
#372186 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#372186 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #372186
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##372186 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##372186 | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003284
Tritanopia (blue-blind)
#0D3D51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #372186; /* rgb */ color: rgb(55, 33, 134); /* oklch */ color: oklch(34.8% 0.157 284.7);
Tailwind
colors: {
custom: {
50: '#785faa',
500: '#372186',
950: '#000000',
},
}SCSS
$custom: #372186; $custom-light: #785faa; $custom-dark: #000000;
JSON
{
"hex": "#372186",
"rgb": {
"r": 55,
"g": 33,
"b": 134
},
"hsl": {
"h": 253.069,
"s": 60.479,
"l": 32.745
},
"oklch": {
"l": 0.34768,
"c": 0.15718,
"h": 284.7
},
"luminance": 0.03621
}Semantic roles & 50–950 ramp
primary
#372186
secondary
#9FB74C
accent
#E444C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F