#3170df
a balanced, vivid blue · cool · closest name: royalblue
RGB
49, 112, 223
HSL
218°, 73%, 53%
CMYK
78, 50, 0, 13
Luminance
0.1757
Every format
| HEX | #3170df |
| RGB | rgb(49, 112, 223) |
| HSL | hsl(218, 73%, 53%) |
| CMYK | cmyk(78%, 50%, 0%, 13%) |
| LAB | lab(49.0 19.2 -62.3) |
| LCH | lch(49.0 65.2 287.1) |
| OKLCH | oklch(0.566 0.182 260.8) |
Copy-ready code
/* CSS */
color: #3170df;
background-color: #3170df;
/* Tailwind (arbitrary) */
class="text-[#3170df] bg-[#3170df]"
/* SCSS */
$brand: #3170df;
/* SwiftUI */
Color(red: 0.192, green: 0.439, blue: 0.875)
/* Android */
Color.parseColor("#3170df")Accessibility — WCAG contrast
Aa
#3170df on white: 4.65:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#3170df on black: 4.51:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green43.9%
Blue87.5%
CMYK percentages
Cyan78.0%
Magenta49.8%
Yellow0.0%
Key (black)12.5%
Color previews
#3170df text on a black background
contrast 4.51:1
Card sample
#3170df text on a white background
contrast 4.65:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3170df;
Background color
Panel with #3170df background
background-color: #3170df;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3170df;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 112, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 112, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3170df; background: linear-gradient(135deg, #3170df, #6631DF);