#0f153d
a deep, vivid blue · warm · closest name: midnightblue
RGB
15, 21, 61
HSL
232°, 61%, 15%
CMYK
75, 66, 0, 76
Luminance
0.0097
Every format
| HEX | #0f153d |
| RGB | rgb(15, 21, 61) |
| HSL | hsl(232, 61%, 15%) |
| CMYK | cmyk(75%, 66%, 0%, 76%) |
| LAB | lab(8.8 13.0 -26.6) |
| LCH | lch(8.8 29.6 296.0) |
| OKLCH | oklch(0.219 0.077 272.0) |
Copy-ready code
/* CSS */
color: #0f153d;
background-color: #0f153d;
/* Tailwind (arbitrary) */
class="text-[#0f153d] bg-[#0f153d]"
/* SCSS */
$brand: #0f153d;
/* SwiftUI */
Color(red: 0.059, green: 0.082, blue: 0.239)
/* Android */
Color.parseColor("#0f153d")Accessibility — WCAG contrast
Aa
#0f153d on white: 17.57:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f153d on black: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green8.2%
Blue23.9%
CMYK percentages
Cyan75.4%
Magenta65.6%
Yellow0.0%
Key (black)76.1%
Color previews
#0f153d text on a black background
contrast 1.19:1
Card sample
#0f153d text on a white background
contrast 17.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f153d;
Background color
Panel with #0f153d background
background-color: #0f153d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f153d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 21, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 21, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f153d; background: linear-gradient(135deg, #0f153d, #280F3D);