#33198B#33198B
#33198B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.172 H 282.7°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #33198B |
|---|---|
| RGB | rgb(51, 25, 139) |
| HSL | hsl(254, 70%, 32%) |
| HSV | hsv(254, 82%, 55%) |
| CMYK | cmyk(63.3%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(21.07, 43.34, -58.09) |
| CIE-LCH | lch(21.07, 72.48, 306.73°) |
| OKLab | oklab(33.91% 0.0378 -0.1675) |
| OKLCH | oklch(33.91% 0.172 282.7) |
| XYZ | xyz(6.3716, 3.2627, 24.7151) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.47
Indigo (survey)
#380282
ΔE00 3.59
Cobalt Blue
#030AA7
ΔE00 4.99
Darkblue
#00008B
ΔE00 5.16
Indigo
#4B0082
ΔE00 5.29
Midnight Blue
#191970
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33198B #718B19
analogous
#19388B #33198B #6C198B
triadic
#33198B #8B3319 #198B33
tetradic
#33198B #8B1938 #718B19 #198B6C
square
#33198B #8B1938 #718B19 #198B6C
split-complementary
#33198B #8B6C19 #388B19
monochromatic
#0D0623 #201057 #33198B #4622BF #6541DD
Accessibility & contrast
On white
12.71
#33198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#33198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33198B
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33198B | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #33198b; /* rgb */ color: rgb(51, 25, 139); /* oklch */ color: oklch(33.9% 0.172 282.7);
Tailwind
colors: {
custom: {
50: '#775aae',
500: '#33198b',
950: '#000000',
},
}SCSS
$custom: #33198b; $custom-light: #775aae; $custom-dark: #000000;
JSON
{
"hex": "#33198b",
"rgb": {
"r": 51,
"g": 25,
"b": 139
},
"hsl": {
"h": 253.684,
"s": 69.512,
"l": 32.157
},
"oklch": {
"l": 0.33912,
"c": 0.17177,
"h": 282.7
},
"luminance": 0.03263
}Semantic roles & 50–950 ramp
primary
#33198B
secondary
#A2BE42
accent
#EC3BC4
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F