#4047df
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 71, 223
HSL
237°, 71%, 56%
CMYK
71, 68, 0, 13
Luminance
0.1092
Every format
| HEX | #4047df |
| RGB | rgb(64, 71, 223) |
| HSL | hsl(237, 71%, 56%) |
| CMYK | cmyk(71%, 68%, 0%, 13%) |
| LAB | lab(39.5 46.4 -77.8) |
| LCH | lch(39.5 90.6 300.8) |
| OKLCH | oklch(0.497 0.225 272.7) |
Copy-ready code
/* CSS */
color: #4047df;
background-color: #4047df;
/* Tailwind (arbitrary) */
class="text-[#4047df] bg-[#4047df]"
/* SCSS */
$brand: #4047df;
/* SwiftUI */
Color(red: 0.251, green: 0.278, blue: 0.875)
/* Android */
Color.parseColor("#4047df")Accessibility — WCAG contrast
Aa
#4047df on white: 6.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#4047df on black: 3.18:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green27.8%
Blue87.5%
CMYK percentages
Cyan71.3%
Magenta68.2%
Yellow0.0%
Key (black)12.5%
Color previews
#4047df text on a black background
contrast 3.18:1
Card sample
#4047df text on a white background
contrast 6.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4047df;
Background color
Panel with #4047df background
background-color: #4047df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4047df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 71, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 71, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4047df; background: linear-gradient(135deg, #4047df, #A340DF);