#0f7afd
a balanced, electric blue · cool · closest name: royalblue
RGB
15, 122, 253
HSL
213°, 98%, 53%
CMYK
94, 52, 0, 1
Luminance
0.2111
Every format
| HEX | #0f7afd |
| RGB | rgb(15, 122, 253) |
| HSL | hsl(213, 98%, 53%) |
| CMYK | cmyk(94%, 52%, 0%, 1%) |
| LAB | lab(53.1 22.1 -72.5) |
| LCH | lch(53.1 75.8 287.0) |
| OKLCH | oklch(0.602 0.214 257.8) |
Copy-ready code
/* CSS */
color: #0f7afd;
background-color: #0f7afd;
/* Tailwind (arbitrary) */
class="text-[#0f7afd] bg-[#0f7afd]"
/* SCSS */
$brand: #0f7afd;
/* SwiftUI */
Color(red: 0.059, green: 0.478, blue: 0.992)
/* Android */
Color.parseColor("#0f7afd")Accessibility — WCAG contrast
Aa
#0f7afd on white: 4.02:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#0f7afd on black: 5.22:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green47.8%
Blue99.2%
CMYK percentages
Cyan94.1%
Magenta51.8%
Yellow0.0%
Key (black)0.8%
Color previews
#0f7afd text on a black background
contrast 5.22:1
Card sample
#0f7afd text on a white background
contrast 4.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f7afd;
Background color
Panel with #0f7afd background
background-color: #0f7afd;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f7afd;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 122, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 122, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f7afd; background: linear-gradient(135deg, #0f7afd, #420FFD);