#335af4
a balanced, electric blue · warm · closest name: royalblue
RGB
51, 90, 244
HSL
228°, 90%, 58%
CMYK
79, 63, 0, 4
Luminance
0.1455
Every format
| HEX | #335af4 |
| RGB | rgb(51, 90, 244) |
| HSL | hsl(228, 90%, 58%) |
| CMYK | cmyk(79%, 63%, 0%, 4%) |
| LAB | lab(45.0 41.0 -80.6) |
| LCH | lch(45.0 90.4 296.9) |
| OKLCH | oklch(0.542 0.234 266.8) |
Copy-ready code
/* CSS */
color: #335af4;
background-color: #335af4;
/* Tailwind (arbitrary) */
class="text-[#335af4] bg-[#335af4]"
/* SCSS */
$brand: #335af4;
/* SwiftUI */
Color(red: 0.200, green: 0.353, blue: 0.957)
/* Android */
Color.parseColor("#335af4")Accessibility — WCAG contrast
Aa
#335af4 on white: 5.37:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#335af4 on black: 3.91:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green35.3%
Blue95.7%
CMYK percentages
Cyan79.1%
Magenta63.1%
Yellow0.0%
Key (black)4.3%
Color previews
#335af4 text on a black background
contrast 3.91:1
Card sample
#335af4 text on a white background
contrast 5.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #335af4;
Background color
Panel with #335af4 background
background-color: #335af4;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #335af4;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 90, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 90, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #335af4; background: linear-gradient(135deg, #335af4, #8D33F4);