#4070df
a balanced, vivid blue · cool · closest name: royalblue
RGB
64, 112, 223
HSL
222°, 71%, 56%
CMYK
71, 50, 0, 13
Luminance
0.1801
Every format
| HEX | #4070df |
| RGB | rgb(64, 112, 223) |
| HSL | hsl(222, 71%, 56%) |
| CMYK | cmyk(71%, 50%, 0%, 13%) |
| LAB | lab(49.5 21.0 -61.4) |
| LCH | lch(49.5 64.9 288.9) |
| OKLCH | oklch(0.572 0.177 264.0) |
Copy-ready code
/* CSS */
color: #4070df;
background-color: #4070df;
/* Tailwind (arbitrary) */
class="text-[#4070df] bg-[#4070df]"
/* SCSS */
$brand: #4070df;
/* SwiftUI */
Color(red: 0.251, green: 0.439, blue: 0.875)
/* Android */
Color.parseColor("#4070df")Accessibility — WCAG contrast
Aa
#4070df on white: 4.56:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#4070df on black: 4.60:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green43.9%
Blue87.5%
CMYK percentages
Cyan71.3%
Magenta49.8%
Yellow0.0%
Key (black)12.5%
Color previews
#4070df text on a black background
contrast 4.60:1
Card sample
#4070df text on a white background
contrast 4.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4070df;
Background color
Panel with #4070df background
background-color: #4070df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4070df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 112, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 112, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4070df; background: linear-gradient(135deg, #4070df, #7A40DF);