#33167E#33167E
#33167E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.159 H 286.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #33167E |
|---|---|
| RGB | rgb(51, 22, 126) |
| HSL | hsl(257, 70%, 29%) |
| HSV | hsv(257, 83%, 49%) |
| CMYK | cmyk(59.5%, 82.5%, 0%, 50.6%) |
| CIE-LAB | lab(19.16, 40.88, -53.05) |
| CIE-LCH | lch(19.16, 66.97, 307.62°) |
| OKLab | oklab(32.16% 0.044 -0.1528) |
| OKLCH | oklch(32.16% 0.159 286.1) |
| XYZ | xyz(5.4169, 2.7837, 19.9865) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.89
Midnight Blue
#191970
ΔE00 4.32
Royal
#0C1793
ΔE00 4.69
Indigo
#4B0082
ΔE00 4.72
Darkblue
#00008B
ΔE00 5.34
Navy
#000080
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33167E #617E16
analogous
#162D7E #33167E #67167E
triadic
#33167E #7E3316 #167E33
tetradic
#33167E #7E162D #617E16 #167E67
square
#33167E #7E162D #617E16 #167E67
split-complementary
#33167E #7E6716 #2D7E16
monochromatic
#0B051A #1E0D4A #33167E #481FB2 #6233DB
Accessibility & contrast
On white
13.49
#33167E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#33167E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33167E
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33167E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33167E | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 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: #33167e; /* rgb */ color: rgb(51, 22, 126); /* oklch */ color: oklch(32.2% 0.159 286.1);
Tailwind
colors: {
custom: {
50: '#7558a4',
500: '#33167e',
950: '#000000',
},
}SCSS
$custom: #33167e; $custom-light: #7558a4; $custom-dark: #000000;
JSON
{
"hex": "#33167e",
"rgb": {
"r": 51,
"g": 22,
"b": 126
},
"hsl": {
"h": 256.731,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.32163,
"c": 0.15902,
"h": 286.1
},
"luminance": 0.02784
}Semantic roles & 50–950 ramp
primary
#33167E
secondary
#92B33D
accent
#ED3BBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F