#30218F#30218F
#30218F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.170 H 279.2°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).
Color values
| HEX | #30218F |
|---|---|
| RGB | rgb(48, 33, 143) |
| HSL | hsl(248, 63%, 35%) |
| HSV | hsv(248, 77%, 56%) |
| CMYK | cmyk(66.4%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.65, 40.15, -57.98) |
| CIE-LCH | lch(22.65, 70.53, 304.70°) |
| OKLab | oklab(35.08% 0.0272 -0.1674) |
| OKLCH | oklch(35.08% 0.17 279.2) |
| XYZ | xyz(6.7191, 3.6987, 26.3411) |
| Luminance | 0.0370 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.41
Indigo Blue
#3A18B1
ΔE00 5.13
Cobalt Blue
#030AA7
ΔE00 5.27
Indigo (survey)
#380282
ΔE00 5.48
Midnight Blue
#191970
ΔE00 5.52
Royal Blue (survey)
#0504AA
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30218F #808F21
analogous
#21498F #30218F #67218F
triadic
#30218F #8F3021 #218F30
tetradic
#30218F #8F2149 #808F21 #218F67
square
#30218F #8F2149 #808F21 #218F67
split-complementary
#30218F #8F6721 #498F21
monochromatic
#0F0A2C #1F165D #30218F #412CC1 #6553D7
Accessibility & contrast
On white
12.07
#30218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#30218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30218F
12.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30218F | 1.00 | 12.07 | 1.74 | 12.07 |
| #FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.07 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #30218f; /* rgb */ color: rgb(48, 33, 143); /* oklch */ color: oklch(35.1% 0.170 279.2);
Tailwind
colors: {
custom: {
50: '#765fb1',
500: '#30218f',
950: '#000000',
},
}SCSS
$custom: #30218f; $custom-light: #765fb1; $custom-dark: #000000;
JSON
{
"hex": "#30218f",
"rgb": {
"r": 48,
"g": 33,
"b": 143
},
"hsl": {
"h": 248.182,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.35079,
"c": 0.16961,
"h": 279.2
},
"luminance": 0.03699
}Semantic roles & 50–950 ramp
primary
#30218F
secondary
#ACBB51
accent
#E642CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980