#404cd3
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 76, 211
HSL
235°, 63%, 54%
CMYK
70, 64, 0, 17
Luminance
0.1096
Every format
| HEX | #404cd3 |
| RGB | rgb(64, 76, 211) |
| HSL | hsl(235, 63%, 54%) |
| CMYK | cmyk(70%, 64%, 0%, 17%) |
| LAB | lab(39.5 39.4 -70.8) |
| LCH | lch(39.5 81.0 299.1) |
| OKLCH | oklch(0.494 0.205 272.4) |
Copy-ready code
/* CSS */
color: #404cd3;
background-color: #404cd3;
/* Tailwind (arbitrary) */
class="text-[#404cd3] bg-[#404cd3]"
/* SCSS */
$brand: #404cd3;
/* SwiftUI */
Color(red: 0.251, green: 0.298, blue: 0.827)
/* Android */
Color.parseColor("#404cd3")Accessibility — WCAG contrast
Aa
#404cd3 on white: 6.58:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#404cd3 on black: 3.19:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green29.8%
Blue82.7%
CMYK percentages
Cyan69.7%
Magenta64.0%
Yellow0.0%
Key (black)17.3%
Color previews
#404cd3 text on a black background
contrast 3.19:1
Card sample
#404cd3 text on a white background
contrast 6.58:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #404cd3;
Background color
Panel with #404cd3 background
background-color: #404cd3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #404cd3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 76, 211, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 76, 211, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404cd3; background: linear-gradient(135deg, #404cd3, #9640D3);