#341fdf
a balanced, electric blue · warm · closest name: blue
RGB
52, 31, 223
HSL
247°, 76%, 50%
CMYK
77, 86, 0, 13
Luminance
0.0704
Every format
| HEX | #341fdf |
| RGB | rgb(52, 31, 223) |
| HSL | hsl(247, 76%, 50%) |
| CMYK | cmyk(77%, 86%, 0%, 13%) |
| LAB | lab(31.9 65.1 -90.3) |
| LCH | lch(31.9 111.3 305.8) |
| OKLCH | oklch(0.442 0.261 272.5) |
Copy-ready code
/* CSS */
color: #341fdf;
background-color: #341fdf;
/* Tailwind (arbitrary) */
class="text-[#341fdf] bg-[#341fdf]"
/* SCSS */
$brand: #341fdf;
/* SwiftUI */
Color(red: 0.204, green: 0.122, blue: 0.875)
/* Android */
Color.parseColor("#341fdf")Accessibility — WCAG contrast
Aa
#341fdf on white: 8.72:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#341fdf on black: 2.41:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.4%
Green12.2%
Blue87.5%
CMYK percentages
Cyan76.7%
Magenta86.1%
Yellow0.0%
Key (black)12.5%
Color previews
#341fdf text on a black background
contrast 2.41:1
Card sample
#341fdf text on a white background
contrast 8.72:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #341fdf;
Background color
Panel with #341fdf background
background-color: #341fdf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #341fdf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(52, 31, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(52, 31, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #341fdf; background: linear-gradient(135deg, #341fdf, #B41FDF);