#403fba
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 63, 186
HSL
241°, 49%, 49%
CMYK
66, 66, 0, 27
Luminance
0.0819
Every format
| HEX | #403fba |
| RGB | rgb(64, 63, 186) |
| HSL | hsl(241, 49%, 49%) |
| CMYK | cmyk(66%, 66%, 0%, 27%) |
| LAB | lab(34.4 38.8 -64.7) |
| LCH | lch(34.4 75.5 301.0) |
| OKLCH | oklch(0.450 0.188 276.1) |
Copy-ready code
/* CSS */
color: #403fba;
background-color: #403fba;
/* Tailwind (arbitrary) */
class="text-[#403fba] bg-[#403fba]"
/* SCSS */
$brand: #403fba;
/* SwiftUI */
Color(red: 0.251, green: 0.247, blue: 0.729)
/* Android */
Color.parseColor("#403fba")Accessibility — WCAG contrast
Aa
#403fba on white: 7.96:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#403fba on black: 2.64:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green24.7%
Blue72.9%
CMYK percentages
Cyan65.6%
Magenta66.1%
Yellow0.0%
Key (black)27.1%
Color previews
#403fba text on a black background
contrast 2.64:1
Card sample
#403fba text on a white background
contrast 7.96:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #403fba;
Background color
Panel with #403fba background
background-color: #403fba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #403fba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 63, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 63, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #403fba; background: linear-gradient(135deg, #403fba, #923FBA);