#30218E#30218E
#30218E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.168 H 279.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #30218E |
|---|---|
| RGB | rgb(48, 33, 142) |
| HSL | hsl(248, 62%, 34%) |
| HSV | hsv(248, 77%, 56%) |
| CMYK | cmyk(66.2%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(22.54, 39.83, -57.54) |
| CIE-LCH | lch(22.54, 69.97, 304.69°) |
| OKLab | oklab(34.97% 0.0275 -0.1661) |
| OKLCH | oklch(34.97% 0.168 279.4) |
| XYZ | xyz(6.6437, 3.6686, 25.9439) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.44
Indigo Blue
#3A18B1
ΔE00 5.27
Cobalt Blue
#030AA7
ΔE00 5.37
Midnight Blue
#191970
ΔE00 5.40
Indigo (survey)
#380282
ΔE00 5.45
Royal Blue (survey)
#0504AA
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30218E #7F8E21
analogous
#21498E #30218E #67218E
triadic
#30218E #8E3021 #218E30
tetradic
#30218E #8E2149 #7F8E21 #218E67
square
#30218E #8E2149 #7F8E21 #218E67
split-complementary
#30218E #8E6721 #498E21
monochromatic
#0E0A2B #1F155C #30218E #412DC0 #6552D7
Accessibility & contrast
On white
12.11
#30218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#30218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30218E
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30218E | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #30218e; /* rgb */ color: rgb(48, 33, 142); /* oklch */ color: oklch(35.0% 0.168 279.4);
Tailwind
colors: {
custom: {
50: '#765fb0',
500: '#30218e',
950: '#000000',
},
}SCSS
$custom: #30218e; $custom-light: #765fb0; $custom-dark: #000000;
JSON
{
"hex": "#30218e",
"rgb": {
"r": 48,
"g": 33,
"b": 142
},
"hsl": {
"h": 248.257,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.34973,
"c": 0.16836,
"h": 279.4
},
"luminance": 0.03669
}Semantic roles & 50–950 ramp
primary
#30218E
secondary
#ACBA50
accent
#E542CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980