#30217E#30217E
#30217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 282.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #30217E |
|---|---|
| RGB | rgb(48, 33, 126) |
| HSL | hsl(250, 58%, 31%) |
| HSV | hsv(250, 74%, 49%) |
| CMYK | cmyk(61.9%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(20.91, 34.61, -50.17) |
| CIE-LCH | lch(20.91, 60.95, 304.60°) |
| OKLab | oklab(33.32% 0.0312 -0.1446) |
| OKLCH | oklch(33.32% 0.148 282.2) |
| XYZ | xyz(5.5275, 3.2221, 20.0653) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.70
Royal
#0C1793
ΔE00 4.86
Indigo (survey)
#380282
ΔE00 5.51
Dark Royal Blue
#02066F
ΔE00 6.77
Darkblue
#00008B
ΔE00 6.90
Indigo
#4B0082
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30217E #6F7E21
analogous
#21407E #30217E #5E217E
triadic
#30217E #7E3021 #217E30
tetradic
#30217E #7E2140 #6F7E21 #217E5E
square
#30217E #7E2140 #6F7E21 #217E5E
split-complementary
#30217E #7E5E21 #407E21
monochromatic
#0B081D #1E144E #30217E #422EAE #5F4AD0
Accessibility & contrast
On white
12.77
#30217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#30217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30217E
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30217E | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #30217e; /* rgb */ color: rgb(48, 33, 126); /* oklch */ color: oklch(33.3% 0.148 282.2);
Tailwind
colors: {
custom: {
50: '#725ea4',
500: '#30217e',
950: '#000000',
},
}SCSS
$custom: #30217e; $custom-light: #725ea4; $custom-dark: #000000;
JSON
{
"hex": "#30217e",
"rgb": {
"r": 48,
"g": 33,
"b": 126
},
"hsl": {
"h": 249.677,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.33324,
"c": 0.1479,
"h": 282.2
},
"luminance": 0.03222
}Semantic roles & 50–950 ramp
primary
#30217E
secondary
#A0B14A
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F