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