#0f57ac
a dark, electric blue · cool · closest name: royalblue
RGB
15, 87, 172
HSL
213°, 84%, 37%
CMYK
91, 49, 0, 33
Luminance
0.0990
Every format
| HEX | #0f57ac |
| RGB | rgb(15, 87, 172) |
| HSL | hsl(213, 84%, 37%) |
| CMYK | cmyk(91%, 49%, 0%, 33%) |
| LAB | lab(37.6 12.8 -51.1) |
| LCH | lch(37.6 52.7 284.0) |
| OKLCH | oklch(0.466 0.152 256.5) |
Copy-ready code
/* CSS */
color: #0f57ac;
background-color: #0f57ac;
/* Tailwind (arbitrary) */
class="text-[#0f57ac] bg-[#0f57ac]"
/* SCSS */
$brand: #0f57ac;
/* SwiftUI */
Color(red: 0.059, green: 0.341, blue: 0.675)
/* Android */
Color.parseColor("#0f57ac")Accessibility — WCAG contrast
Aa
#0f57ac on white: 7.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f57ac on black: 2.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green34.1%
Blue67.5%
CMYK percentages
Cyan91.3%
Magenta49.4%
Yellow0.0%
Key (black)32.5%
Color previews
#0f57ac text on a black background
contrast 2.98:1
Card sample
#0f57ac text on a white background
contrast 7.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f57ac;
Background color
Panel with #0f57ac background
background-color: #0f57ac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f57ac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 87, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 87, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f57ac; background: linear-gradient(135deg, #0f57ac, #300FAC);