#33198F#33198F
#33198F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.176 H 281.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #33198F |
|---|---|
| RGB | rgb(51, 25, 143) |
| HSL | hsl(253, 70%, 33%) |
| HSV | hsv(253, 83%, 56%) |
| CMYK | cmyk(64.3%, 82.5%, 0%, 43.9%) |
| CIE-LAB | lab(21.51, 44.54, -59.85) |
| CIE-LCH | lch(21.51, 74.61, 306.65°) |
| OKLab | oklab(34.35% 0.0365 -0.1727) |
| OKLCH | oklch(34.35% 0.176 281.9) |
| XYZ | xyz(6.6692, 3.3817, 26.2826) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 3.84
Cobalt Blue
#030AA7
ΔE00 4.55
Indigo Blue
#3A18B1
ΔE00 4.79
Royal Blue (survey)
#0504AA
ΔE00 4.92
Ultramarine
#2000B1
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#33198F #758F19
analogous
#193A8F #33198F #6E198F
triadic
#33198F #8F3319 #198F33
tetradic
#33198F #8F193A #758F19 #198F6E
square
#33198F #8F193A #758F19 #198F6E
split-complementary
#33198F #8F6E19 #3A8F19
monochromatic
#0E0727 #20105B #33198F #4622C3 #6644DE
Accessibility & contrast
On white
12.53
#33198F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#33198F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #33198F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##33198F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##33198F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #33198f; /* rgb */ color: rgb(51, 25, 143); /* oklch */ color: oklch(34.4% 0.176 281.9);
Tailwind
colors: {
custom: {
50: '#785bb1',
500: '#33198f',
950: '#000000',
},
}SCSS
$custom: #33198f; $custom-light: #785bb1; $custom-dark: #000000;
JSON
{
"hex": "#33198f",
"rgb": {
"r": 51,
"g": 25,
"b": 143
},
"hsl": {
"h": 253.22,
"s": 70.238,
"l": 32.941
},
"oklch": {
"l": 0.34352,
"c": 0.17649,
"h": 281.9
},
"luminance": 0.03382
}Semantic roles & 50–950 ramp
primary
#33198F
secondary
#A4BF44
accent
#ED3BC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980