#4038bc
a balanced, vivid blue · warm · closest name: slateblue
RGB
64, 56, 188
HSL
244°, 54%, 48%
CMYK
66, 70, 0, 26
Luminance
0.0755
Every format
| HEX | #4038bc |
| RGB | rgb(64, 56, 188) |
| HSL | hsl(244, 54%, 48%) |
| CMYK | cmyk(66%, 70%, 0%, 26%) |
| LAB | lab(33.0 43.7 -68.1) |
| LCH | lch(33.0 80.9 302.7) |
| OKLCH | oklch(0.441 0.198 277.2) |
Copy-ready code
/* CSS */
color: #4038bc;
background-color: #4038bc;
/* Tailwind (arbitrary) */
class="text-[#4038bc] bg-[#4038bc]"
/* SCSS */
$brand: #4038bc;
/* SwiftUI */
Color(red: 0.251, green: 0.220, blue: 0.737)
/* Android */
Color.parseColor("#4038bc")Accessibility — WCAG contrast
Aa
#4038bc on white: 8.37:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#4038bc on black: 2.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green22.0%
Blue73.7%
CMYK percentages
Cyan66.0%
Magenta70.2%
Yellow0.0%
Key (black)26.3%
Color previews
#4038bc text on a black background
contrast 2.51:1
Card sample
#4038bc text on a white background
contrast 8.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4038bc;
Background color
Panel with #4038bc background
background-color: #4038bc;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4038bc;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 56, 188, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 56, 188, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4038bc; background: linear-gradient(135deg, #4038bc, #9838BC);