#291fdf
a balanced, electric blue · warm · closest name: blue
RGB
41, 31, 223
HSL
243°, 76%, 50%
CMYK
82, 86, 0, 13
Luminance
0.0678
Every format
| HEX | #291fdf |
| RGB | rgb(41, 31, 223) |
| HSL | hsl(243, 76%, 50%) |
| CMYK | cmyk(82%, 86%, 0%, 13%) |
| LAB | lab(31.3 64.7 -91.3) |
| LCH | lch(31.3 111.9 305.3) |
| OKLCH | oklch(0.436 0.264 269.7) |
Copy-ready code
/* CSS */
color: #291fdf;
background-color: #291fdf;
/* Tailwind (arbitrary) */
class="text-[#291fdf] bg-[#291fdf]"
/* SCSS */
$brand: #291fdf;
/* SwiftUI */
Color(red: 0.161, green: 0.122, blue: 0.875)
/* Android */
Color.parseColor("#291fdf")Accessibility — WCAG contrast
Aa
#291fdf on white: 8.91:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#291fdf on black: 2.36:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red16.1%
Green12.2%
Blue87.5%
CMYK percentages
Cyan81.6%
Magenta86.1%
Yellow0.0%
Key (black)12.5%
Color previews
#291fdf text on a black background
contrast 2.36:1
Card sample
#291fdf text on a white background
contrast 8.91:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #291fdf;
Background color
Panel with #291fdf background
background-color: #291fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #291fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(41, 31, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(41, 31, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #291fdf; background: linear-gradient(135deg, #291fdf, #A91FDF);