#30227E#30227E
#30227E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.147 H 281.9°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).
Color values
| HEX | #30227E |
|---|---|
| RGB | rgb(48, 34, 126) |
| HSL | hsl(249, 58%, 31%) |
| HSV | hsv(249, 73%, 49%) |
| CMYK | cmyk(61.9%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(21.13, 34.02, -49.82) |
| CIE-LCH | lch(21.13, 60.33, 304.33°) |
| OKLab | oklab(33.48% 0.0303 -0.1436) |
| OKLCH | oklch(33.48% 0.147 281.9) |
| XYZ | xyz(5.5557, 3.2784, 20.0747) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.77
Royal
#0C1793
ΔE00 4.98
Indigo (survey)
#380282
ΔE00 5.77
Dark Royal Blue
#02066F
ΔE00 6.97
Darkblue
#00008B
ΔE00 7.11
Indigo
#4B0082
ΔE00 7.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30227E #707E22
analogous
#22427E #30227E #5E227E
triadic
#30227E #7E3022 #227E30
tetradic
#30227E #7E2242 #707E22 #227E5E
square
#30227E #7E2242 #707E22 #227E5E
split-complementary
#30227E #7E5E22 #427E22
monochromatic
#0B081E #1E154E #30227E #422FAE #604CCF
Accessibility & contrast
On white
12.68
#30227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#30227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30227E
12.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30227E | 1.00 | 12.68 | 1.66 | 12.68 |
| #FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #30227e; /* rgb */ color: rgb(48, 34, 126); /* oklch */ color: oklch(33.5% 0.147 281.9);
Tailwind
colors: {
custom: {
50: '#725fa4',
500: '#30227e',
950: '#000000',
},
}SCSS
$custom: #30227e; $custom-light: #725fa4; $custom-dark: #000000;
JSON
{
"hex": "#30227e",
"rgb": {
"r": 48,
"g": 34,
"b": 126
},
"hsl": {
"h": 249.13,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.33477,
"c": 0.14673,
"h": 281.9
},
"luminance": 0.03279
}Semantic roles & 50–950 ramp
primary
#30227E
secondary
#A1B14B
accent
#E147C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F