#30227F#30227F
#30227F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.148 H 281.7°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #30227F |
|---|---|
| RGB | rgb(48, 34, 127) |
| HSL | hsl(249, 58%, 32%) |
| HSV | hsv(249, 73%, 50%) |
| CMYK | cmyk(62.2%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(21.22, 34.35, -50.29) |
| CIE-LCH | lch(21.22, 60.91, 304.33°) |
| OKLab | oklab(33.58% 0.0301 -0.1449) |
| OKLCH | oklch(33.58% 0.148 281.7) |
| XYZ | xyz(5.6205, 3.3043, 20.4162) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.85
Royal
#0C1793
ΔE00 4.85
Indigo (survey)
#380282
ΔE00 5.73
Dark Royal Blue
#02066F
ΔE00 6.99
Darkblue
#00008B
ΔE00 7.04
Indigo
#4B0082
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#30227F #717F22
analogous
#22437F #30227F #5F227F
triadic
#30227F #7F3022 #227F30
tetradic
#30227F #7F2243 #717F22 #227F5F
square
#30227F #7F2243 #717F22 #227F5F
split-complementary
#30227F #7F5F22 #437F22
monochromatic
#0C081E #1E154F #30227F #422FAF #604CCF
Accessibility & contrast
On white
12.64
#30227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#30227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #30227F
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##30227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##30227F | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #30227f; /* rgb */ color: rgb(48, 34, 127); /* oklch */ color: oklch(33.6% 0.148 281.7);
Tailwind
colors: {
custom: {
50: '#735fa5',
500: '#30227f',
950: '#000000',
},
}SCSS
$custom: #30227f; $custom-light: #735fa5; $custom-dark: #000000;
JSON
{
"hex": "#30227f",
"rgb": {
"r": 48,
"g": 34,
"b": 127
},
"hsl": {
"h": 249.032,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.33576,
"c": 0.14804,
"h": 281.7
},
"luminance": 0.03305
}Semantic roles & 50–950 ramp
primary
#30227F
secondary
#A2B24B
accent
#E147CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F