#4041df
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 65, 223
HSL
240°, 71%, 56%
CMYK
71, 71, 0, 13
Luminance
0.1020
Every format
| HEX | #4041df |
| RGB | rgb(64, 65, 223) |
| HSL | hsl(240, 71%, 56%) |
| CMYK | cmyk(71%, 71%, 0%, 13%) |
| LAB | lab(38.2 49.9 -79.9) |
| LCH | lch(38.2 94.2 302.0) |
| OKLCH | oklch(0.488 0.231 273.5) |
Copy-ready code
/* CSS */
color: #4041df;
background-color: #4041df;
/* Tailwind (arbitrary) */
class="text-[#4041df] bg-[#4041df]"
/* SCSS */
$brand: #4041df;
/* SwiftUI */
Color(red: 0.251, green: 0.255, blue: 0.875)
/* Android */
Color.parseColor("#4041df")Accessibility — WCAG contrast
Aa
#4041df on white: 6.91:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#4041df on black: 3.04:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green25.5%
Blue87.5%
CMYK percentages
Cyan71.3%
Magenta70.9%
Yellow0.0%
Key (black)12.5%
Color previews
#4041df text on a black background
contrast 3.04:1
Card sample
#4041df text on a white background
contrast 6.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4041df;
Background color
Panel with #4041df background
background-color: #4041df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4041df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 65, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 65, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4041df; background: linear-gradient(135deg, #4041df, #A940DF);