#003ba3
a dark, electric blue · cool · closest name: midnightblue
RGB
0, 59, 163
HSL
218°, 100%, 32%
CMYK
100, 64, 0, 36
Luminance
0.0577
Every format
| HEX | #003ba3 |
| RGB | rgb(0, 59, 163) |
| HSL | hsl(218, 100%, 32%) |
| CMYK | cmyk(100%, 64%, 0%, 36%) |
| LAB | lab(28.8 27.5 -60.1) |
| LCH | lch(28.8 66.1 294.5) |
| OKLCH | oklch(0.397 0.176 261.5) |
Copy-ready code
/* CSS */
color: #003ba3;
background-color: #003ba3;
/* Tailwind (arbitrary) */
class="text-[#003ba3] bg-[#003ba3]"
/* SCSS */
$brand: #003ba3;
/* SwiftUI */
Color(red: 0.000, green: 0.231, blue: 0.639)
/* Android */
Color.parseColor("#003ba3")Accessibility — WCAG contrast
Aa
#003ba3 on white: 9.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#003ba3 on black: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red0.0%
Green23.1%
Blue63.9%
CMYK percentages
Cyan100.0%
Magenta63.8%
Yellow0.0%
Key (black)36.1%
Color previews
#003ba3 text on a black background
contrast 2.15:1
Card sample
#003ba3 text on a white background
contrast 9.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #003ba3;
Background color
Panel with #003ba3 background
background-color: #003ba3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #003ba3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(0, 59, 163, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(0, 59, 163, 0.45);
Border & gradient
Gradient panel
border: 3px solid #003ba3; background: linear-gradient(135deg, #003ba3, #3200A3);