#0f28af
a dark, electric blue · warm · closest name: navy
RGB
15, 40, 175
HSL
231°, 84%, 37%
CMYK
91, 77, 0, 31
Luminance
0.0471
Every format
| HEX | #0f28af |
| RGB | rgb(15, 40, 175) |
| HSL | hsl(231, 84%, 37%) |
| CMYK | cmyk(91%, 77%, 0%, 31%) |
| LAB | lab(25.9 44.6 -72.2) |
| LCH | lch(25.9 84.9 301.7) |
| OKLCH | oklch(0.380 0.210 265.7) |
Copy-ready code
/* CSS */
color: #0f28af;
background-color: #0f28af;
/* Tailwind (arbitrary) */
class="text-[#0f28af] bg-[#0f28af]"
/* SCSS */
$brand: #0f28af;
/* SwiftUI */
Color(red: 0.059, green: 0.157, blue: 0.686)
/* Android */
Color.parseColor("#0f28af")Accessibility — WCAG contrast
Aa
#0f28af on white: 10.81:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f28af on black: 1.94:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green15.7%
Blue68.6%
CMYK percentages
Cyan91.4%
Magenta77.1%
Yellow0.0%
Key (black)31.4%
Color previews
#0f28af text on a black background
contrast 1.94:1
Card sample
#0f28af text on a white background
contrast 10.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f28af;
Background color
Panel with #0f28af background
background-color: #0f28af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f28af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 40, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 40, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f28af; background: linear-gradient(135deg, #0f28af, #610FAF);