#2d1eb7
a dark, vivid blue · warm · closest name: navy
RGB
45, 30, 183
HSL
246°, 72%, 42%
CMYK
75, 84, 0, 28
Luminance
0.0491
Every format
| HEX | #2d1eb7 |
| RGB | rgb(45, 30, 183) |
| HSL | hsl(246, 72%, 42%) |
| CMYK | cmyk(75%, 84%, 0%, 28%) |
| LAB | lab(26.5 53.7 -76.0) |
| LCH | lch(26.5 93.1 305.3) |
| OKLCH | oklch(0.390 0.220 273.6) |
Copy-ready code
/* CSS */
color: #2d1eb7;
background-color: #2d1eb7;
/* Tailwind (arbitrary) */
class="text-[#2d1eb7] bg-[#2d1eb7]"
/* SCSS */
$brand: #2d1eb7;
/* SwiftUI */
Color(red: 0.176, green: 0.118, blue: 0.718)
/* Android */
Color.parseColor("#2d1eb7")Accessibility — WCAG contrast
Aa
#2d1eb7 on white: 10.60:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2d1eb7 on black: 1.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red17.6%
Green11.8%
Blue71.8%
CMYK percentages
Cyan75.4%
Magenta83.6%
Yellow0.0%
Key (black)28.2%
Color previews
#2d1eb7 text on a black background
contrast 1.98:1
Card sample
#2d1eb7 text on a white background
contrast 10.60:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2d1eb7;
Background color
Panel with #2d1eb7 background
background-color: #2d1eb7;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2d1eb7;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(45, 30, 183, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 30, 183, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d1eb7; background: linear-gradient(135deg, #2d1eb7, #931EB7);