#336df4
a balanced, electric blue · cool · closest name: royalblue
RGB
51, 109, 244
HSL
222°, 90%, 58%
CMYK
79, 55, 0, 4
Luminance
0.1817
Every format
| HEX | #336df4 |
| RGB | rgb(51, 109, 244) |
| HSL | hsl(222, 90%, 58%) |
| CMYK | cmyk(79%, 55%, 0%, 4%) |
| LAB | lab(49.7 29.1 -72.9) |
| LCH | lch(49.7 78.5 291.7) |
| OKLCH | oklch(0.577 0.212 263.6) |
Copy-ready code
/* CSS */
color: #336df4;
background-color: #336df4;
/* Tailwind (arbitrary) */
class="text-[#336df4] bg-[#336df4]"
/* SCSS */
$brand: #336df4;
/* SwiftUI */
Color(red: 0.200, green: 0.427, blue: 0.957)
/* Android */
Color.parseColor("#336df4")Accessibility — WCAG contrast
Aa
#336df4 on white: 4.53:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#336df4 on black: 4.63:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green42.7%
Blue95.7%
CMYK percentages
Cyan79.1%
Magenta55.3%
Yellow0.0%
Key (black)4.3%
Color previews
#336df4 text on a black background
contrast 4.63:1
Card sample
#336df4 text on a white background
contrast 4.53:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #336df4;
Background color
Panel with #336df4 background
background-color: #336df4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #336df4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 109, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 109, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336df4; background: linear-gradient(135deg, #336df4, #7A33F4);