#382188#382188
#382188 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.160 H 284.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).
Color values
| HEX | #382188 |
|---|---|
| RGB | rgb(56, 33, 136) |
| HSL | hsl(253, 61%, 33%) |
| HSV | hsv(253, 76%, 53%) |
| CMYK | cmyk(58.8%, 75.7%, 0%, 46.7%) |
| CIE-LAB | lab(22.67, 39.00, -53.55) |
| CIE-LCH | lch(22.67, 66.25, 306.06°) |
| OKLab | oklab(35.06% 0.041 -0.1542) |
| OKLCH | oklch(35.06% 0.16 284.9) |
| XYZ | xyz(6.6173, 3.7056, 23.6543) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.68
Indigo (survey)
#380282
ΔE00 4.95
Midnight Blue
#191970
ΔE00 5.42
Indigo
#4B0082
ΔE00 5.93
Indigo Blue
#3A18B1
ΔE00 5.98
Cobalt Blue
#030AA7
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#382188 #718821
analogous
#213D88 #382188 #6B2188
triadic
#382188 #883821 #218838
tetradic
#382188 #88213D #718821 #21886B
square
#382188 #88213D #718821 #21886B
split-complementary
#382188 #886B21 #3D8821
monochromatic
#0F0925 #241557 #382188 #4C2DB9 #6D4FD4
Accessibility & contrast
On white
12.06
#382188 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#382188 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #382188
12.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##382188 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##382188 | 1.00 | 12.06 | 1.74 | 12.06 |
| #FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003386
Tritanopia (blue-blind)
#0E3D53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #382188; /* rgb */ color: rgb(56, 33, 136); /* oklch */ color: oklch(35.1% 0.160 284.9);
Tailwind
colors: {
custom: {
50: '#795fac',
500: '#382188',
950: '#000000',
},
}SCSS
$custom: #382188; $custom-light: #795fac; $custom-dark: #000000;
JSON
{
"hex": "#382188",
"rgb": {
"r": 56,
"g": 33,
"b": 136
},
"hsl": {
"h": 253.398,
"s": 60.947,
"l": 33.137
},
"oklch": {
"l": 0.35063,
"c": 0.15957,
"h": 284.9
},
"luminance": 0.03706
}Semantic roles & 50–950 ramp
primary
#382188
secondary
#A0B84D
accent
#E444C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F