#404ccf
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 76, 207
HSL
235°, 60%, 53%
CMYK
69, 63, 0, 19
Luminance
0.1076
Every format
| HEX | #404ccf |
| RGB | rgb(64, 76, 207) |
| HSL | hsl(235, 60%, 53%) |
| CMYK | cmyk(69%, 63%, 0%, 19%) |
| LAB | lab(39.2 38.0 -69.1) |
| LCH | lch(39.2 78.8 298.8) |
| OKLCH | oklch(0.491 0.200 272.5) |
Copy-ready code
/* CSS */
color: #404ccf;
background-color: #404ccf;
/* Tailwind (arbitrary) */
class="text-[#404ccf] bg-[#404ccf]"
/* SCSS */
$brand: #404ccf;
/* SwiftUI */
Color(red: 0.251, green: 0.298, blue: 0.812)
/* Android */
Color.parseColor("#404ccf")Accessibility — WCAG contrast
Aa
#404ccf on white: 6.66:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#404ccf on black: 3.15:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green29.8%
Blue81.2%
CMYK percentages
Cyan69.1%
Magenta63.3%
Yellow0.0%
Key (black)18.8%
Color previews
#404ccf text on a black background
contrast 3.15:1
Card sample
#404ccf text on a white background
contrast 6.66:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #404ccf;
Background color
Panel with #404ccf background
background-color: #404ccf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #404ccf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 76, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 76, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404ccf; background: linear-gradient(135deg, #404ccf, #9340CF);