#4f49cf
a balanced, vivid blue · warm · closest name: slateblue
RGB
79, 73, 207
HSL
243°, 58%, 55%
CMYK
62, 65, 0, 19
Luminance
0.1093
Every format
| HEX | #4f49cf |
| RGB | rgb(79, 73, 207) |
| HSL | hsl(243, 58%, 55%) |
| CMYK | cmyk(62%, 65%, 0%, 19%) |
| LAB | lab(39.5 41.9 -68.6) |
| LCH | lch(39.5 80.3 301.4) |
| OKLCH | oklch(0.496 0.200 278.2) |
Copy-ready code
/* CSS */
color: #4f49cf;
background-color: #4f49cf;
/* Tailwind (arbitrary) */
class="text-[#4f49cf] bg-[#4f49cf]"
/* SCSS */
$brand: #4f49cf;
/* SwiftUI */
Color(red: 0.310, green: 0.286, blue: 0.812)
/* Android */
Color.parseColor("#4f49cf")Accessibility — WCAG contrast
Aa
#4f49cf on white: 6.59:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#4f49cf on black: 3.19:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.0%
Green28.6%
Blue81.2%
CMYK percentages
Cyan61.8%
Magenta64.7%
Yellow0.0%
Key (black)18.8%
Color previews
#4f49cf text on a black background
contrast 3.19:1
Card sample
#4f49cf text on a white background
contrast 6.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #4f49cf;
Background color
Panel with #4f49cf background
background-color: #4f49cf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #4f49cf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(79, 73, 207, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 73, 207, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f49cf; background: linear-gradient(135deg, #4f49cf, #A849CF);