#2958ba
a dark, vivid blue · cool · closest name: royalblue
RGB
41, 88, 186
HSL
221°, 64%, 45%
CMYK
78, 53, 0, 27
Luminance
0.1100
Every format
| HEX | #2958ba |
| RGB | rgb(41, 88, 186) |
| HSL | hsl(221, 64%, 45%) |
| CMYK | cmyk(78%, 53%, 0%, 27%) |
| LAB | lab(39.6 19.8 -56.3) |
| LCH | lch(39.6 59.6 289.4) |
| OKLCH | oklch(0.486 0.163 262.7) |
Copy-ready code
/* CSS */
color: #2958ba;
background-color: #2958ba;
/* Tailwind (arbitrary) */
class="text-[#2958ba] bg-[#2958ba]"
/* SCSS */
$brand: #2958ba;
/* SwiftUI */
Color(red: 0.161, green: 0.345, blue: 0.729)
/* Android */
Color.parseColor("#2958ba")Accessibility — WCAG contrast
Aa
#2958ba on white: 6.56:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#2958ba on black: 3.20:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red16.1%
Green34.5%
Blue72.9%
CMYK percentages
Cyan78.0%
Magenta52.7%
Yellow0.0%
Key (black)27.1%
Color previews
#2958ba text on a black background
contrast 3.20:1
Card sample
#2958ba text on a white background
contrast 6.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2958ba;
Background color
Panel with #2958ba background
background-color: #2958ba;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2958ba;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(41, 88, 186, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(41, 88, 186, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2958ba; background: linear-gradient(135deg, #2958ba, #5B29BA);