#0f004b
a deep, electric blue · warm · closest name: midnightblue
RGB
15, 0, 75
HSL
252°, 100%, 15%
CMYK
80, 100, 0, 71
Luminance
0.0061
Every format
| HEX | #0f004b |
| RGB | rgb(15, 0, 75) |
| HSL | hsl(252, 100%, 15%) |
| CMYK | cmyk(80%, 100%, 0%, 71%) |
| LAB | lab(5.5 31.8 -41.9) |
| LCH | lch(5.5 52.6 307.2) |
| OKLCH | oklch(0.198 0.123 276.5) |
Copy-ready code
/* CSS */
color: #0f004b;
background-color: #0f004b;
/* Tailwind (arbitrary) */
class="text-[#0f004b] bg-[#0f004b]"
/* SCSS */
$brand: #0f004b;
/* SwiftUI */
Color(red: 0.059, green: 0.000, blue: 0.294)
/* Android */
Color.parseColor("#0f004b")Accessibility — WCAG contrast
Aa
#0f004b on white: 18.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f004b on black: 1.12:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green0.0%
Blue29.4%
CMYK percentages
Cyan80.0%
Magenta100.0%
Yellow0.0%
Key (black)70.6%
Color previews
#0f004b text on a black background
contrast 1.12:1
Card sample
#0f004b text on a white background
contrast 18.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f004b;
Background color
Panel with #0f004b background
background-color: #0f004b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f004b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 0, 75, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 0, 75, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f004b; background: linear-gradient(135deg, #0f004b, #41004B);