#2811ba
a dark, electric blue · warm · closest name: navy
RGB
40, 17, 186
HSL
248°, 83%, 40%
CMYK
79, 91, 0, 27
Luminance
0.0440
Every format
| HEX | #2811ba |
| RGB | rgb(40, 17, 186) |
| HSL | hsl(248, 83%, 40%) |
| CMYK | cmyk(79%, 91%, 0%, 27%) |
| LAB | lab(24.9 59.1 -80.3) |
| LCH | lch(24.9 99.7 306.3) |
| OKLCH | oklch(0.380 0.232 272.2) |
Copy-ready code
/* CSS */
color: #2811ba;
background-color: #2811ba;
/* Tailwind (arbitrary) */
class="text-[#2811ba] bg-[#2811ba]"
/* SCSS */
$brand: #2811ba;
/* SwiftUI */
Color(red: 0.157, green: 0.067, blue: 0.729)
/* Android */
Color.parseColor("#2811ba")Accessibility — WCAG contrast
Aa
#2811ba on white: 11.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2811ba on black: 1.88:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green6.7%
Blue72.9%
CMYK percentages
Cyan78.5%
Magenta90.9%
Yellow0.0%
Key (black)27.1%
Color previews
#2811ba text on a black background
contrast 1.88:1
Card sample
#2811ba text on a white background
contrast 11.17:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2811ba;
Background color
Panel with #2811ba background
background-color: #2811ba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2811ba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 17, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 17, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2811ba; background: linear-gradient(135deg, #2811ba, #9911BA);