#126fdf
a balanced, electric blue · cool · closest name: royalblue
RGB
18, 111, 223
HSL
213°, 85%, 47%
CMYK
92, 50, 0, 13
Luminance
0.1683
Every format
| HEX | #126fdf |
| RGB | rgb(18, 111, 223) |
| HSL | hsl(213, 85%, 47%) |
| CMYK | cmyk(92%, 50%, 0%, 13%) |
| LAB | lab(48.0 17.6 -63.9) |
| LCH | lch(48.0 66.2 285.4) |
| OKLCH | oklch(0.557 0.189 257.1) |
Copy-ready code
/* CSS */
color: #126fdf;
background-color: #126fdf;
/* Tailwind (arbitrary) */
class="text-[#126fdf] bg-[#126fdf]"
/* SCSS */
$brand: #126fdf;
/* SwiftUI */
Color(red: 0.071, green: 0.435, blue: 0.875)
/* Android */
Color.parseColor("#126fdf")Accessibility — WCAG contrast
Aa
#126fdf on white: 4.81:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#126fdf on black: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red7.1%
Green43.5%
Blue87.5%
CMYK percentages
Cyan91.9%
Magenta50.2%
Yellow0.0%
Key (black)12.5%
Color previews
#126fdf text on a black background
contrast 4.37:1
Card sample
#126fdf text on a white background
contrast 4.81:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #126fdf;
Background color
Panel with #126fdf background
background-color: #126fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #126fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(18, 111, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 111, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #126fdf; background: linear-gradient(135deg, #126fdf, #3E12DF);