#33157E#33157E
#33157E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.160 H 286.2°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #33157E |
|---|---|
| RGB | rgb(51, 21, 126) |
| HSL | hsl(257, 71%, 29%) |
| HSV | hsv(257, 83%, 49%) |
| CMYK | cmyk(59.5%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(19.00, 41.34, -53.31) |
| CIE-LCH | lch(19.00, 67.46, 307.79°) |
| OKLab | oklab(32.05% 0.0447 -0.1535) |
| OKLCH | oklch(32.05% 0.16 286.2) |
| XYZ | xyz(5.3982, 2.7462, 19.9802) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.71
Midnight Blue
#191970
ΔE00 4.39
Indigo
#4B0082
ΔE00 4.61
Royal
#0C1793
ΔE00 4.71
Darkblue
#00008B
ΔE00 5.23
Navy
#000080
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33157E #607E15
analogous
#152C7E #33157E #68157E
triadic
#33157E #7E3315 #157E33
tetradic
#33157E #7E152C #607E15 #157E68
square
#33157E #7E152C #607E15 #157E68
split-complementary
#33157E #7E6815 #2C7E15
monochromatic
#0B041A #1E0C4A #33157E #481EB2 #6231DD
Accessibility & contrast
On white
13.56
#33157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#33157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33157E
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33157E | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#0C354A
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #33157e; /* rgb */ color: rgb(51, 21, 126); /* oklch */ color: oklch(32.1% 0.160 286.2);
Tailwind
colors: {
custom: {
50: '#7557a4',
500: '#33157e',
950: '#000000',
},
}SCSS
$custom: #33157e; $custom-light: #7557a4; $custom-dark: #000000;
JSON
{
"hex": "#33157e",
"rgb": {
"r": 51,
"g": 21,
"b": 126
},
"hsl": {
"h": 257.143,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.32054,
"c": 0.15992,
"h": 286.2
},
"luminance": 0.02746
}Semantic roles & 50–950 ramp
primary
#33157E
secondary
#91B33C
accent
#EE3ABB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F