#0f4fac
a dark, electric blue · cool · closest name: royalblue
RGB
15, 79, 172
HSL
216°, 84%, 37%
CMYK
91, 54, 0, 33
Luminance
0.0867
Every format
| HEX | #0f4fac |
| RGB | rgb(15, 79, 172) |
| HSL | hsl(216, 84%, 37%) |
| CMYK | cmyk(91%, 54%, 0%, 33%) |
| LAB | lab(35.3 18.1 -54.9) |
| LCH | lch(35.3 57.8 288.3) |
| OKLCH | oklch(0.449 0.161 259.2) |
Copy-ready code
/* CSS */
color: #0f4fac;
background-color: #0f4fac;
/* Tailwind (arbitrary) */
class="text-[#0f4fac] bg-[#0f4fac]"
/* SCSS */
$brand: #0f4fac;
/* SwiftUI */
Color(red: 0.059, green: 0.310, blue: 0.675)
/* Android */
Color.parseColor("#0f4fac")Accessibility — WCAG contrast
Aa
#0f4fac on white: 7.68:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f4fac on black: 2.73:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green31.0%
Blue67.5%
CMYK percentages
Cyan91.3%
Magenta54.1%
Yellow0.0%
Key (black)32.5%
Color previews
#0f4fac text on a black background
contrast 2.73:1
Card sample
#0f4fac text on a white background
contrast 7.68:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f4fac;
Background color
Panel with #0f4fac background
background-color: #0f4fac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f4fac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 79, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 79, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4fac; background: linear-gradient(135deg, #0f4fac, #380FAC);