#406ff0
a balanced, electric blue · cool · closest name: royalblue
RGB
64, 111, 240
HSL
224°, 85%, 60%
CMYK
73, 54, 0, 6
Luminance
0.1875
Every format
| HEX | #406ff0 |
| RGB | rgb(64, 111, 240) |
| HSL | hsl(224, 85%, 60%) |
| CMYK | cmyk(73%, 54%, 0%, 6%) |
| LAB | lab(50.4 27.8 -69.5) |
| LCH | lch(50.4 74.9 291.8) |
| OKLCH | oklch(0.582 0.201 265.4) |
Copy-ready code
/* CSS */
color: #406ff0;
background-color: #406ff0;
/* Tailwind (arbitrary) */
class="text-[#406ff0] bg-[#406ff0]"
/* SCSS */
$brand: #406ff0;
/* SwiftUI */
Color(red: 0.251, green: 0.435, blue: 0.941)
/* Android */
Color.parseColor("#406ff0")Accessibility — WCAG contrast
Aa
#406ff0 on white: 4.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#406ff0 on black: 4.75:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green43.5%
Blue94.1%
CMYK percentages
Cyan73.3%
Magenta53.8%
Yellow0.0%
Key (black)5.9%
Color previews
#406ff0 text on a black background
contrast 4.75:1
Card sample
#406ff0 text on a white background
contrast 4.42:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #406ff0;
Background color
Panel with #406ff0 background
background-color: #406ff0;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #406ff0;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 111, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 111, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #406ff0; background: linear-gradient(135deg, #406ff0, #8640F0);