#33177F#33177F
#33177F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.159 H 285.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #33177F |
|---|---|
| RGB | rgb(51, 23, 127) |
| HSL | hsl(256, 69%, 29%) |
| HSV | hsv(256, 82%, 50%) |
| CMYK | cmyk(59.8%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(19.43, 40.71, -53.24) |
| CIE-LCH | lch(19.43, 67.02, 307.40°) |
| OKLab | oklab(32.38% 0.043 -0.1534) |
| OKLCH | oklch(32.38% 0.159 285.7) |
| XYZ | xyz(5.5012, 2.8486, 20.3345) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.04
Midnight Blue
#191970
ΔE00 4.31
Royal
#0C1793
ΔE00 4.56
Indigo
#4B0082
ΔE00 4.83
Darkblue
#00008B
ΔE00 5.38
Navy
#000080
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33177F #637F17
analogous
#172F7F #33177F #67177F
triadic
#33177F #7F3317 #177F33
tetradic
#33177F #7F172F #637F17 #177F67
square
#33177F #7F172F #637F17 #177F67
split-complementary
#33177F #7F6717 #2F7F17
monochromatic
#0A051A #1E0E4B #33177F #4820B3 #6236DB
Accessibility & contrast
On white
13.38
#33177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#33177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33177F
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33177F | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#0A364B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #33177f; /* rgb */ color: rgb(51, 23, 127); /* oklch */ color: oklch(32.4% 0.159 285.7);
Tailwind
colors: {
custom: {
50: '#7558a5',
500: '#33177f',
950: '#000000',
},
}SCSS
$custom: #33177f; $custom-light: #7558a5; $custom-dark: #000000;
JSON
{
"hex": "#33177f",
"rgb": {
"r": 51,
"g": 23,
"b": 127
},
"hsl": {
"h": 256.154,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.32384,
"c": 0.15929,
"h": 285.7
},
"luminance": 0.02849
}Semantic roles & 50–950 ramp
primary
#33177F
secondary
#94B43E
accent
#EC3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F