#332188#332188
#332188 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.160 H 282.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).
Color values
| HEX | #332188 |
|---|---|
| RGB | rgb(51, 33, 136) |
| HSL | hsl(250, 61%, 33%) |
| HSV | hsv(250, 76%, 53%) |
| CMYK | cmyk(62.5%, 75.7%, 0%, 46.7%) |
| CIE-LAB | lab(22.19, 38.29, -54.36) |
| CIE-LCH | lch(22.19, 66.49, 305.16°) |
| OKLab | oklab(34.6% 0.0334 -0.1567) |
| OKLCH | oklch(34.6% 0.16 282) |
| XYZ | xyz(6.3516, 3.5686, 23.6419) |
| Luminance | 0.0357 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.10
Midnight Blue
#191970
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 5.16
Indigo Blue
#3A18B1
ΔE00 6.06
Cobalt Blue
#030AA7
ΔE00 6.17
Indigo
#4B0082
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#332188 #768821
analogous
#214388 #332188 #662188
triadic
#332188 #883321 #218833
tetradic
#332188 #882143 #768821 #218866
square
#332188 #882143 #768821 #218866
split-complementary
#332188 #886621 #438821
monochromatic
#0E0925 #211557 #332188 #452DB9 #664FD4
Accessibility & contrast
On white
12.25
#332188 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#332188 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #332188
12.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##332188 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##332188 | 1.00 | 12.25 | 1.71 | 12.25 |
| #FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #332188; /* rgb */ color: rgb(51, 33, 136); /* oklch */ color: oklch(34.6% 0.160 282.0);
Tailwind
colors: {
custom: {
50: '#765fac',
500: '#332188',
950: '#000000',
},
}SCSS
$custom: #332188; $custom-light: #765fac; $custom-dark: #000000;
JSON
{
"hex": "#332188",
"rgb": {
"r": 51,
"g": 33,
"b": 136
},
"hsl": {
"h": 250.485,
"s": 60.947,
"l": 33.137
},
"oklch": {
"l": 0.34604,
"c": 0.16026,
"h": 282
},
"luminance": 0.03569
}Semantic roles & 50–950 ramp
primary
#332188
secondary
#A5B84D
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F