#4070ff
a balanced, electric blue · cool · closest name: royalblue
RGB
64, 112, 255
HSL
225°, 100%, 63%
CMYK
75, 56, 0, 0
Luminance
0.1990
Every format
| HEX | #4070ff |
| RGB | rgb(64, 112, 255) |
| HSL | hsl(225, 100%, 63%) |
| CMYK | cmyk(75%, 56%, 0%, 0%) |
| LAB | lab(51.7 32.5 -75.7) |
| LCH | lch(51.7 82.4 293.2) |
| OKLCH | oklch(0.596 0.219 265.8) |
Copy-ready code
/* CSS */
color: #4070ff;
background-color: #4070ff;
/* Tailwind (arbitrary) */
class="text-[#4070ff] bg-[#4070ff]"
/* SCSS */
$brand: #4070ff;
/* SwiftUI */
Color(red: 0.251, green: 0.439, blue: 1.000)
/* Android */
Color.parseColor("#4070ff")Accessibility — WCAG contrast
Aa
#4070ff on white: 4.22:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#4070ff on black: 4.98:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green43.9%
Blue100.0%
CMYK percentages
Cyan74.9%
Magenta56.1%
Yellow0.0%
Key (black)0.0%
Color previews
#4070ff text on a black background
contrast 4.98:1
Card sample
#4070ff text on a white background
contrast 4.22:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4070ff;
Background color
Panel with #4070ff background
background-color: #4070ff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4070ff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 112, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 112, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4070ff; background: linear-gradient(135deg, #4070ff, #8F40FF);