#2d49af
a dark, vivid blue · warm · closest name: slateblue
RGB
45, 73, 175
HSL
227°, 59%, 43%
CMYK
74, 58, 0, 31
Luminance
0.0842
Every format
| HEX | #2d49af |
| RGB | rgb(45, 73, 175) |
| HSL | hsl(227, 59%, 43%) |
| CMYK | cmyk(74%, 58%, 0%, 31%) |
| LAB | lab(34.8 26.0 -57.5) |
| LCH | lch(34.8 63.1 294.4) |
| OKLCH | oklch(0.448 0.166 267.5) |
Copy-ready code
/* CSS */
color: #2d49af;
background-color: #2d49af;
/* Tailwind (arbitrary) */
class="text-[#2d49af] bg-[#2d49af]"
/* SCSS */
$brand: #2d49af;
/* SwiftUI */
Color(red: 0.176, green: 0.286, blue: 0.686)
/* Android */
Color.parseColor("#2d49af")Accessibility — WCAG contrast
Aa
#2d49af on white: 7.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2d49af on black: 2.68:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red17.6%
Green28.6%
Blue68.6%
CMYK percentages
Cyan74.3%
Magenta58.3%
Yellow0.0%
Key (black)31.4%
Color previews
#2d49af text on a black background
contrast 2.68:1
Card sample
#2d49af text on a white background
contrast 7.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2d49af;
Background color
Panel with #2d49af background
background-color: #2d49af;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2d49af;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(45, 73, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 73, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d49af; background: linear-gradient(135deg, #2d49af, #682DAF);