#5174cb
a balanced, vivid blue · cool · closest name: dodgerblue
RGB
81, 116, 203
HSL
223°, 54%, 56%
CMYK
60, 43, 0, 20
Luminance
0.1855
Every format
| HEX | #5174cb |
| RGB | rgb(81, 116, 203) |
| HSL | hsl(223, 54%, 56%) |
| CMYK | cmyk(60%, 43%, 0%, 20%) |
| LAB | lab(50.2 14.3 -49.0) |
| LCH | lch(50.2 51.0 286.3) |
| OKLCH | oklch(0.575 0.140 265.7) |
Copy-ready code
/* CSS */
color: #5174cb;
background-color: #5174cb;
/* Tailwind (arbitrary) */
class="text-[#5174cb] bg-[#5174cb]"
/* SCSS */
$brand: #5174cb;
/* SwiftUI */
Color(red: 0.318, green: 0.455, blue: 0.796)
/* Android */
Color.parseColor("#5174cb")Accessibility — WCAG contrast
Aa
#5174cb on white: 4.46:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#5174cb on black: 4.71:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red31.8%
Green45.5%
Blue79.6%
CMYK percentages
Cyan60.1%
Magenta42.9%
Yellow0.0%
Key (black)20.4%
Color previews
#5174cb text on a black background
contrast 4.71:1
Card sample
#5174cb text on a white background
contrast 4.46:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #5174cb;
Background color
Panel with #5174cb background
background-color: #5174cb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #5174cb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(81, 116, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(81, 116, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5174cb; background: linear-gradient(135deg, #5174cb, #7F51CB);