#0f45af
a dark, electric blue · cool · closest name: royalblue
RGB
15, 69, 175
HSL
220°, 84%, 37%
CMYK
91, 61, 0, 31
Luminance
0.0745
Every format
| HEX | #0f45af |
| RGB | rgb(15, 69, 175) |
| HSL | hsl(220, 84%, 37%) |
| CMYK | cmyk(91%, 61%, 0%, 31%) |
| LAB | lab(32.8 26.1 -60.8) |
| LCH | lch(32.8 66.2 293.2) |
| OKLCH | oklch(0.430 0.178 262.0) |
Copy-ready code
/* CSS */
color: #0f45af;
background-color: #0f45af;
/* Tailwind (arbitrary) */
class="text-[#0f45af] bg-[#0f45af]"
/* SCSS */
$brand: #0f45af;
/* SwiftUI */
Color(red: 0.059, green: 0.271, blue: 0.686)
/* Android */
Color.parseColor("#0f45af")Accessibility — WCAG contrast
Aa
#0f45af on white: 8.43:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f45af on black: 2.49:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green27.1%
Blue68.6%
CMYK percentages
Cyan91.4%
Magenta60.6%
Yellow0.0%
Key (black)31.4%
Color previews
#0f45af text on a black background
contrast 2.49:1
Card sample
#0f45af text on a white background
contrast 8.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f45af;
Background color
Panel with #0f45af background
background-color: #0f45af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f45af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 69, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 69, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f45af; background: linear-gradient(135deg, #0f45af, #440FAF);