#33157C#33157C
#33157C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.158 H 286.7°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #33157C |
|---|---|
| RGB | rgb(51, 21, 124) |
| HSL | hsl(257, 71%, 28%) |
| HSV | hsv(257, 83%, 49%) |
| CMYK | cmyk(58.9%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(18.78, 40.76, -52.40) |
| CIE-LCH | lch(18.78, 66.38, 307.88°) |
| OKLab | oklab(31.84% 0.0454 -0.1509) |
| OKLCH | oklch(31.84% 0.158 286.7) |
| XYZ | xyz(5.2704, 2.6951, 19.3074) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.81
Midnight Blue
#191970
ΔE00 4.28
Indigo
#4B0082
ΔE00 4.64
Royal
#0C1793
ΔE00 4.96
Navy
#000080
ΔE00 5.32
Darkblue
#00008B
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33157C #5E7C15
analogous
#152A7C #33157C #66157C
triadic
#33157C #7C3315 #157C33
tetradic
#33157C #7C152A #5E7C15 #157C66
square
#33157C #7C152A #5E7C15 #157C66
split-complementary
#33157C #7C6615 #2A7C15
monochromatic
#0B041A #1D0C48 #33157C #491EB0 #6230DC
Accessibility & contrast
On white
13.65
#33157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#33157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33157C
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33157C | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#0F3449
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #33157c; /* rgb */ color: rgb(51, 21, 124); /* oklch */ color: oklch(31.8% 0.158 286.7);
Tailwind
colors: {
custom: {
50: '#7557a3',
500: '#33157c',
950: '#000000',
},
}SCSS
$custom: #33157c; $custom-light: #7557a3; $custom-dark: #000000;
JSON
{
"hex": "#33157c",
"rgb": {
"r": 51,
"g": 21,
"b": 124
},
"hsl": {
"h": 257.476,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.31837,
"c": 0.15757,
"h": 286.7
},
"luminance": 0.02695
}Semantic roles & 50–950 ramp
primary
#33157C
secondary
#8FB13C
accent
#EE3AB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F