#30216C#30216C
#30216C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.124 H 286.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #30216C |
|---|---|
| RGB | rgb(48, 33, 108) |
| HSL | hsl(252, 53%, 28%) |
| HSV | hsv(252, 69%, 42%) |
| CMYK | cmyk(55.6%, 69.4%, 0%, 57.6%) |
| CIE-LAB | lab(19.22, 28.66, -41.39) |
| CIE-LCH | lch(19.22, 50.34, 304.70°) |
| OKLab | oklab(31.59% 0.0344 -0.1188) |
| OKLCH | oklch(31.59% 0.124 286.1) |
| XYZ | xyz(4.4687, 2.7986, 14.4892) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.88
Dark Indigo
#1F0954
ΔE00 6.36
Indigo (survey)
#380282
ΔE00 7.14
Darkblue (survey)
#030764
ΔE00 7.18
Dark Royal Blue
#02066F
ΔE00 7.32
Royal
#0C1793
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30216C #5D6C21
analogous
#21386C #30216C #55216C
triadic
#30216C #6C3021 #216C30
tetradic
#30216C #6C2138 #5D6C21 #216C55
square
#30216C #6C2138 #5D6C21 #216C55
split-complementary
#30216C #6C5521 #386C21
monochromatic
#0A0717 #1B133D #30216C #452F9B #5C42C5
Accessibility & contrast
On white
13.46
#30216C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#30216C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30216C
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30216C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30216C | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#183443
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #30216c; /* rgb */ color: rgb(48, 33, 108); /* oklch */ color: oklch(31.6% 0.124 286.1);
Tailwind
colors: {
custom: {
50: '#6f5d97',
500: '#30216c',
950: '#000000',
},
}SCSS
$custom: #30216c; $custom-light: #6f5d97; $custom-dark: #000000;
JSON
{
"hex": "#30216c",
"rgb": {
"r": 48,
"g": 33,
"b": 108
},
"hsl": {
"h": 252,
"s": 53.191,
"l": 27.647
},
"oklch": {
"l": 0.31589,
"c": 0.12369,
"h": 286.1
},
"luminance": 0.02799
}Semantic roles & 50–950 ramp
primary
#30216C
secondary
#8EA049
accent
#DD4BC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E