#33166E#33166E
#33166E is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.140 H 290.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #33166E |
|---|---|
| RGB | rgb(51, 22, 110) |
| HSL | hsl(260, 67%, 26%) |
| HSV | hsv(260, 80%, 43%) |
| CMYK | cmyk(53.6%, 80%, 0%, 56.9%) |
| CIE-LAB | lab(17.48, 36.13, -45.53) |
| CIE-LCH | lch(17.48, 58.12, 308.44°) |
| OKLab | oklab(30.49% 0.0492 -0.1308) |
| OKLCH | oklch(30.49% 0.14 290.6) |
| XYZ | xyz(4.4658, 2.4032, 14.9774) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.16
Indigo (survey)
#380282
ΔE00 4.45
Dark Indigo
#1F0954
ΔE00 5.20
Indigo
#4B0082
ΔE00 5.56
Royal Purple (survey)
#4B006E
ΔE00 5.60
Dark Royal Blue
#02066F
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33166E #516E16
analogous
#16256E #33166E #5F166E
triadic
#33166E #6E3316 #166E33
tetradic
#33166E #6E1625 #516E16 #166E5F
square
#33166E #6E1625 #516E16 #166E5F
split-complementary
#33166E #6E5F16 #256E16
monochromatic
#0C051A #1B0C3B #33166E #4B20A1 #622AD4
Accessibility & contrast
On white
14.18
#33166E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#33166E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33166E
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33166E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33166E | 1.00 | 14.18 | 1.48 | 14.18 |
| #FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00296C
Tritanopia (blue-blind)
#1E2F41
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #33166e; /* rgb */ color: rgb(51, 22, 110); /* oklch */ color: oklch(30.5% 0.140 290.6);
Tailwind
colors: {
custom: {
50: '#725798',
500: '#33166e',
950: '#000000',
},
}SCSS
$custom: #33166e; $custom-light: #725798; $custom-dark: #000000;
JSON
{
"hex": "#33166e",
"rgb": {
"r": 51,
"g": 22,
"b": 110
},
"hsl": {
"h": 259.773,
"s": 66.667,
"l": 25.882
},
"oklch": {
"l": 0.30486,
"c": 0.13975,
"h": 290.6
},
"luminance": 0.02403
}Semantic roles & 50–950 ramp
primary
#33166E
secondary
#82A43C
accent
#EA3EB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E