#2957f0
a balanced, electric blue · warm · closest name: royalblue
RGB
41, 87, 240
HSL
226°, 87%, 55%
CMYK
83, 64, 0, 6
Luminance
0.1358
Every format
| HEX | #2957f0 |
| RGB | rgb(41, 87, 240) |
| HSL | hsl(226, 87%, 55%) |
| CMYK | cmyk(83%, 64%, 0%, 6%) |
| LAB | lab(43.6 40.6 -80.6) |
| LCH | lch(43.6 90.3 296.7) |
| OKLCH | oklch(0.530 0.234 265.5) |
Copy-ready code
/* CSS */
color: #2957f0;
background-color: #2957f0;
/* Tailwind (arbitrary) */
class="text-[#2957f0] bg-[#2957f0]"
/* SCSS */
$brand: #2957f0;
/* SwiftUI */
Color(red: 0.161, green: 0.341, blue: 0.941)
/* Android */
Color.parseColor("#2957f0")Accessibility — WCAG contrast
Aa
#2957f0 on white: 5.65:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#2957f0 on black: 3.72:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red16.1%
Green34.1%
Blue94.1%
CMYK percentages
Cyan82.9%
Magenta63.7%
Yellow0.0%
Key (black)5.9%
Color previews
#2957f0 text on a black background
contrast 3.72:1
Card sample
#2957f0 text on a white background
contrast 5.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2957f0;
Background color
Panel with #2957f0 background
background-color: #2957f0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2957f0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(41, 87, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(41, 87, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2957f0; background: linear-gradient(135deg, #2957f0, #8029F0);