#042f49
a deep, electric blue · cool · closest name: darkslategray
RGB
4, 47, 73
HSL
203°, 90%, 15%
CMYK
95, 36, 0, 71
Luminance
0.0254
Every format
| HEX | #042f49 |
| RGB | rgb(4, 47, 73) |
| HSL | hsl(203, 90%, 15%) |
| CMYK | cmyk(95%, 36%, 0%, 71%) |
| LAB | lab(18.1 -3.0 -20.1) |
| LCH | lch(18.1 20.3 261.5) |
| OKLCH | oklch(0.292 0.065 241.5) |
Copy-ready code
/* CSS */
color: #042f49;
background-color: #042f49;
/* Tailwind (arbitrary) */
class="text-[#042f49] bg-[#042f49]"
/* SCSS */
$brand: #042f49;
/* SwiftUI */
Color(red: 0.016, green: 0.184, blue: 0.286)
/* Android */
Color.parseColor("#042f49")Accessibility — WCAG contrast
Aa
#042f49 on white: 13.93:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#042f49 on black: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red1.6%
Green18.4%
Blue28.6%
CMYK percentages
Cyan94.5%
Magenta35.6%
Yellow0.0%
Key (black)71.4%
Color previews
#042f49 text on a black background
contrast 1.51:1
Card sample
#042f49 text on a white background
contrast 13.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #042f49;
Background color
Panel with #042f49 background
background-color: #042f49;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #042f49;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(4, 47, 73, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 47, 73, 0.45);
Border & gradient
Gradient panel
border: 3px solid #042f49; background: linear-gradient(135deg, #042f49, #070449);