#2f4fee
a balanced, electric blue · warm · closest name: royalblue
RGB
47, 79, 238
HSL
230°, 85%, 56%
CMYK
80, 67, 0, 7
Luminance
0.1237
Every format
| HEX | #2f4fee |
| RGB | rgb(47, 79, 238) |
| HSL | hsl(230, 85%, 56%) |
| CMYK | cmyk(80%, 67%, 0%, 7%) |
| LAB | lab(41.8 45.3 -82.5) |
| LCH | lch(41.8 94.1 298.8) |
| OKLCH | oklch(0.516 0.239 267.5) |
Copy-ready code
/* CSS */
color: #2f4fee;
background-color: #2f4fee;
/* Tailwind (arbitrary) */
class="text-[#2f4fee] bg-[#2f4fee]"
/* SCSS */
$brand: #2f4fee;
/* SwiftUI */
Color(red: 0.184, green: 0.310, blue: 0.933)
/* Android */
Color.parseColor("#2f4fee")Accessibility — WCAG contrast
Aa
#2f4fee on white: 6.05:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#2f4fee on black: 3.47:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.4%
Green31.0%
Blue93.3%
CMYK percentages
Cyan80.3%
Magenta66.8%
Yellow0.0%
Key (black)6.7%
Color previews
#2f4fee text on a black background
contrast 3.47:1
Card sample
#2f4fee text on a white background
contrast 6.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2f4fee;
Background color
Panel with #2f4fee background
background-color: #2f4fee;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2f4fee;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(47, 79, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 79, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4fee; background: linear-gradient(135deg, #2f4fee, #8E2FEE);