#403fdf
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 63, 223
HSL
240°, 71%, 56%
CMYK
71, 72, 0, 13
Luminance
0.0997
Every format
| HEX | #403fdf |
| RGB | rgb(64, 63, 223) |
| HSL | hsl(240, 71%, 56%) |
| CMYK | cmyk(71%, 72%, 0%, 13%) |
| LAB | lab(37.8 51.0 -80.5) |
| LCH | lch(37.8 95.3 302.3) |
| OKLCH | oklch(0.485 0.233 273.7) |
Copy-ready code
/* CSS */
color: #403fdf;
background-color: #403fdf;
/* Tailwind (arbitrary) */
class="text-[#403fdf] bg-[#403fdf]"
/* SCSS */
$brand: #403fdf;
/* SwiftUI */
Color(red: 0.251, green: 0.247, blue: 0.875)
/* Android */
Color.parseColor("#403fdf")Accessibility — WCAG contrast
Aa
#403fdf on white: 7.01:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#403fdf on black: 2.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green24.7%
Blue87.5%
CMYK percentages
Cyan71.3%
Magenta71.7%
Yellow0.0%
Key (black)12.5%
Color previews
#403fdf text on a black background
contrast 2.99:1
Card sample
#403fdf text on a white background
contrast 7.01:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #403fdf;
Background color
Panel with #403fdf background
background-color: #403fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #403fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 63, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 63, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403fdf; background: linear-gradient(135deg, #403fdf, #AB3FDF);