#33157B#33157B
#33157B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.156 H 287.0°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).
Color values
| HEX | #33157B |
|---|---|
| RGB | rgb(51, 21, 123) |
| HSL | hsl(258, 71%, 28%) |
| HSV | hsv(258, 83%, 48%) |
| CMYK | cmyk(58.5%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(18.67, 40.46, -51.94) |
| CIE-LCH | lch(18.67, 65.84, 307.92°) |
| OKLab | oklab(31.73% 0.0457 -0.1495) |
| OKLCH | oklch(31.73% 0.156 287) |
| XYZ | xyz(5.2075, 2.6699, 18.9760) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.87
Midnight Blue
#191970
ΔE00 4.23
Indigo
#4B0082
ΔE00 4.67
Royal
#0C1793
ΔE00 5.09
Navy
#000080
ΔE00 5.37
Deep Blue
#040273
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33157B #5D7B15
analogous
#152A7B #33157B #66157B
triadic
#33157B #7B3315 #157B33
tetradic
#33157B #7B152A #5D7B15 #157B66
square
#33157B #7B152A #5D7B15 #157B66
split-complementary
#33157B #7B6615 #2A7B15
monochromatic
#0B041A #1D0C47 #33157B #491EAF #622FDB
Accessibility & contrast
On white
13.69
#33157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#33157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33157B
13.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33157B | 1.00 | 13.69 | 1.53 | 13.69 |
| #FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#113348
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #33157b; /* rgb */ color: rgb(51, 21, 123); /* oklch */ color: oklch(31.7% 0.156 287.0);
Tailwind
colors: {
custom: {
50: '#7457a2',
500: '#33157b',
950: '#000000',
},
}SCSS
$custom: #33157b; $custom-light: #7457a2; $custom-dark: #000000;
JSON
{
"hex": "#33157b",
"rgb": {
"r": 51,
"g": 21,
"b": 123
},
"hsl": {
"h": 257.647,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.3173,
"c": 0.15639,
"h": 287
},
"luminance": 0.0267
}Semantic roles & 50–950 ramp
primary
#33157B
secondary
#8EB03B
accent
#EE3AB9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F