#0a3385
a dark, electric blue · cool · closest name: midnightblue
RGB
10, 51, 133
HSL
220°, 86%, 28%
CMYK
93, 62, 0, 48
Luminance
0.0413
Every format
| HEX | #0a3385 |
| RGB | rgb(10, 51, 133) |
| HSL | hsl(220, 86%, 28%) |
| CMYK | cmyk(93%, 62%, 0%, 48%) |
| LAB | lab(24.1 21.1 -49.5) |
| LCH | lch(24.1 53.8 293.1) |
| OKLCH | oklch(0.353 0.145 262.2) |
Copy-ready code
/* CSS */
color: #0a3385;
background-color: #0a3385;
/* Tailwind (arbitrary) */
class="text-[#0a3385] bg-[#0a3385]"
/* SCSS */
$brand: #0a3385;
/* SwiftUI */
Color(red: 0.039, green: 0.200, blue: 0.522)
/* Android */
Color.parseColor("#0a3385")Accessibility — WCAG contrast
Aa
#0a3385 on white: 11.51:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0a3385 on black: 1.83:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red3.9%
Green20.0%
Blue52.2%
CMYK percentages
Cyan92.5%
Magenta61.7%
Yellow0.0%
Key (black)47.8%
Color previews
#0a3385 text on a black background
contrast 1.83:1
Card sample
#0a3385 text on a white background
contrast 11.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0a3385;
Background color
Panel with #0a3385 background
background-color: #0a3385;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0a3385;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(10, 51, 133, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(10, 51, 133, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0a3385; background: linear-gradient(135deg, #0a3385, #330A85);