#405cff
a balanced, electric blue · warm · closest name: royalblue
RGB
64, 92, 255
HSL
231°, 100%, 63%
CMYK
75, 64, 0, 0
Luminance
0.1596
Every format
| HEX | #405cff |
| RGB | rgb(64, 92, 255) |
| HSL | hsl(231, 100%, 63%) |
| CMYK | cmyk(75%, 64%, 0%, 0%) |
| LAB | lab(46.9 44.7 -83.6) |
| LCH | lch(46.9 94.8 298.2) |
| OKLCH | oklch(0.560 0.242 269.1) |
Copy-ready code
/* CSS */
color: #405cff;
background-color: #405cff;
/* Tailwind (arbitrary) */
class="text-[#405cff] bg-[#405cff]"
/* SCSS */
$brand: #405cff;
/* SwiftUI */
Color(red: 0.251, green: 0.361, blue: 1.000)
/* Android */
Color.parseColor("#405cff")Accessibility — WCAG contrast
Aa
#405cff on white: 5.01:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#405cff on black: 4.19:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green36.1%
Blue100.0%
CMYK percentages
Cyan74.9%
Magenta63.9%
Yellow0.0%
Key (black)0.0%
Color previews
#405cff text on a black background
contrast 4.19:1
Card sample
#405cff text on a white background
contrast 5.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #405cff;
Background color
Panel with #405cff background
background-color: #405cff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #405cff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 92, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 92, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #405cff; background: linear-gradient(135deg, #405cff, #A340FF);