#126df4
a balanced, electric blue · cool · closest name: royalblue
RGB
18, 109, 244
HSL
216°, 91%, 51%
CMYK
93, 55, 0, 4
Luminance
0.1760
Every format
| HEX | #126df4 |
| RGB | rgb(18, 109, 244) |
| HSL | hsl(216, 91%, 51%) |
| CMYK | cmyk(93%, 55%, 0%, 4%) |
| LAB | lab(49.0 27.0 -74.1) |
| LCH | lch(49.0 78.9 290.0) |
| OKLCH | oklch(0.570 0.218 259.8) |
Copy-ready code
/* CSS */
color: #126df4;
background-color: #126df4;
/* Tailwind (arbitrary) */
class="text-[#126df4] bg-[#126df4]"
/* SCSS */
$brand: #126df4;
/* SwiftUI */
Color(red: 0.071, green: 0.427, blue: 0.957)
/* Android */
Color.parseColor("#126df4")Accessibility — WCAG contrast
Aa
#126df4 on white: 4.65:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#126df4 on black: 4.52:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red7.1%
Green42.7%
Blue95.7%
CMYK percentages
Cyan92.6%
Magenta55.3%
Yellow0.0%
Key (black)4.3%
Color previews
#126df4 text on a black background
contrast 4.52:1
Card sample
#126df4 text on a white background
contrast 4.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #126df4;
Background color
Panel with #126df4 background
background-color: #126df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #126df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(18, 109, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 109, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #126df4; background: linear-gradient(135deg, #126df4, #4E12F4);