#332186#332186
#332186 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.158 H 282.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).
Color values
| HEX | #332186 |
|---|---|
| RGB | rgb(51, 33, 134) |
| HSL | hsl(251, 60%, 33%) |
| HSV | hsv(251, 75%, 53%) |
| CMYK | cmyk(61.9%, 75.4%, 0%, 47.5%) |
| CIE-LAB | lab(21.99, 37.65, -53.44) |
| CIE-LCH | lch(21.99, 65.37, 305.16°) |
| OKLab | oklab(34.4% 0.0339 -0.154) |
| OKLCH | oklch(34.4% 0.158 282.4) |
| XYZ | xyz(6.2108, 3.5123, 22.9003) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.27
Midnight Blue
#191970
ΔE00 4.72
Indigo (survey)
#380282
ΔE00 5.15
Indigo Blue
#3A18B1
ΔE00 6.36
Cobalt Blue
#030AA7
ΔE00 6.41
Indigo
#4B0082
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332186 #748621
analogous
#214186 #332186 #652186
triadic
#332186 #863321 #218633
tetradic
#332186 #862141 #748621 #218665
square
#332186 #862141 #748621 #218665
split-complementary
#332186 #866521 #418621
monochromatic
#0E0924 #201555 #332186 #462DB7 #664ED3
Accessibility & contrast
On white
12.33
#332186 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#332186 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332186
12.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332186 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332186 | 1.00 | 12.33 | 1.70 | 12.33 |
| #FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #332186; /* rgb */ color: rgb(51, 33, 134); /* oklch */ color: oklch(34.4% 0.158 282.4);
Tailwind
colors: {
custom: {
50: '#765eaa',
500: '#332186',
950: '#000000',
},
}SCSS
$custom: #332186; $custom-light: #765eaa; $custom-dark: #000000;
JSON
{
"hex": "#332186",
"rgb": {
"r": 51,
"g": 33,
"b": 134
},
"hsl": {
"h": 250.693,
"s": 60.479,
"l": 32.745
},
"oklch": {
"l": 0.344,
"c": 0.15773,
"h": 282.4
},
"luminance": 0.03513
}Semantic roles & 50–950 ramp
primary
#332186
secondary
#A4B74C
accent
#E444C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F