#406ff9
a balanced, electric blue · cool · closest name: royalblue
RGB
64, 111, 249
HSL
225°, 94%, 61%
CMYK
74, 55, 0, 2
Luminance
0.1930
Every format
| HEX | #406ff9 |
| RGB | rgb(64, 111, 249) |
| HSL | hsl(225, 94%, 61%) |
| CMYK | cmyk(74%, 55%, 0%, 2%) |
| LAB | lab(51.0 31.0 -73.5) |
| LCH | lch(51.0 79.8 292.8) |
| OKLCH | oklch(0.589 0.213 265.8) |
Copy-ready code
/* CSS */
color: #406ff9;
background-color: #406ff9;
/* Tailwind (arbitrary) */
class="text-[#406ff9] bg-[#406ff9]"
/* SCSS */
$brand: #406ff9;
/* SwiftUI */
Color(red: 0.251, green: 0.435, blue: 0.976)
/* Android */
Color.parseColor("#406ff9")Accessibility — WCAG contrast
Aa
#406ff9 on white: 4.32:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#406ff9 on black: 4.86:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green43.5%
Blue97.6%
CMYK percentages
Cyan74.3%
Magenta55.4%
Yellow0.0%
Key (black)2.4%
Color previews
#406ff9 text on a black background
contrast 4.86:1
Card sample
#406ff9 text on a white background
contrast 4.32:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #406ff9;
Background color
Panel with #406ff9 background
background-color: #406ff9;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #406ff9;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 111, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 111, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #406ff9; background: linear-gradient(135deg, #406ff9, #8D40F9);