#2873df
a balanced, vivid blue · cool · closest name: royalblue
RGB
40, 115, 223
HSL
215°, 74%, 52%
CMYK
82, 48, 0, 13
Luminance
0.1804
Every format
| HEX | #2873df |
| RGB | rgb(40, 115, 223) |
| HSL | hsl(215, 74%, 52%) |
| CMYK | cmyk(82%, 48%, 0%, 13%) |
| LAB | lab(49.5 16.5 -61.4) |
| LCH | lch(49.5 63.6 285.0) |
| OKLCH | oklch(0.570 0.180 258.4) |
Copy-ready code
/* CSS */
color: #2873df;
background-color: #2873df;
/* Tailwind (arbitrary) */
class="text-[#2873df] bg-[#2873df]"
/* SCSS */
$brand: #2873df;
/* SwiftUI */
Color(red: 0.157, green: 0.451, blue: 0.875)
/* Android */
Color.parseColor("#2873df")Accessibility — WCAG contrast
Aa
#2873df on white: 4.56:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#2873df on black: 4.61:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green45.1%
Blue87.5%
CMYK percentages
Cyan82.1%
Magenta48.4%
Yellow0.0%
Key (black)12.5%
Color previews
#2873df text on a black background
contrast 4.61:1
Card sample
#2873df text on a white background
contrast 4.56:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2873df;
Background color
Panel with #2873df background
background-color: #2873df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2873df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 115, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 115, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2873df; background: linear-gradient(135deg, #2873df, #5728DF);