#33159E#33159E
#33159E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.7% C 0.197 H 279.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).
Color values
| HEX | #33159E |
|---|---|
| RGB | rgb(51, 21, 158) |
| HSL | hsl(253, 77%, 35%) |
| HSV | hsv(253, 87%, 62%) |
| CMYK | cmyk(67.7%, 86.7%, 0%, 38%) |
| CIE-LAB | lab(22.68, 50.58, -67.17) |
| CIE-LCH | lch(22.68, 84.08, 306.98°) |
| OKLab | oklab(35.66% 0.0331 -0.1939) |
| OKLCH | oklch(35.66% 0.197 279.7) |
| XYZ | xyz(7.8030, 3.7081, 32.6457) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.82
Cobalt Blue
#030AA7
ΔE00 3.20
Ultramarine
#2000B1
ΔE00 3.20
Royal Blue (survey)
#0504AA
ΔE00 3.42
Royal
#0C1793
ΔE00 3.62
Indigo (survey)
#380282
ΔE00 4.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33159E #809E15
analogous
#153B9E #33159E #78159E
triadic
#33159E #9E3315 #159E33
tetradic
#33159E #9E153B #809E15 #159E78
square
#33159E #9E153B #809E15 #159E78
split-complementary
#33159E #9E7815 #3B9E15
monochromatic
#100732 #220E68 #33159E #441CD4 #6A47E7
Accessibility & contrast
On white
12.06
#33159E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#33159E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33159E
12.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33159E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33159E | 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)
#003BA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #33159e; /* rgb */ color: rgb(51, 21, 158); /* oklch */ color: oklch(35.7% 0.197 279.7);
Tailwind
colors: {
custom: {
50: '#7b5abc',
500: '#33159e',
950: '#000000',
},
}SCSS
$custom: #33159e; $custom-light: #7b5abc; $custom-dark: #000000;
JSON
{
"hex": "#33159e",
"rgb": {
"r": 51,
"g": 21,
"b": 158
},
"hsl": {
"h": 253.139,
"s": 76.536,
"l": 35.098
},
"oklch": {
"l": 0.35664,
"c": 0.19668,
"h": 279.7
},
"luminance": 0.03709
}Semantic roles & 50–950 ramp
primary
#33159E
secondary
#ABC747
accent
#F335C9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981