#334fbb
a balanced, vivid blue · warm · closest name: royalblue
RGB
51, 79, 187
HSL
228°, 57%, 47%
CMYK
73, 58, 0, 27
Luminance
0.0988
Every format
| HEX | #334fbb |
| RGB | rgb(51, 79, 187) |
| HSL | hsl(228, 57%, 47%) |
| CMYK | cmyk(73%, 58%, 0%, 27%) |
| LAB | lab(37.6 27.3 -60.0) |
| LCH | lch(37.6 65.9 294.5) |
| OKLCH | oklch(0.473 0.173 268.0) |
Copy-ready code
/* CSS */
color: #334fbb;
background-color: #334fbb;
/* Tailwind (arbitrary) */
class="text-[#334fbb] bg-[#334fbb]"
/* SCSS */
$brand: #334fbb;
/* SwiftUI */
Color(red: 0.200, green: 0.310, blue: 0.733)
/* Android */
Color.parseColor("#334fbb")Accessibility — WCAG contrast
Aa
#334fbb on white: 7.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#334fbb on black: 2.98:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green31.0%
Blue73.3%
CMYK percentages
Cyan72.7%
Magenta57.8%
Yellow0.0%
Key (black)26.7%
Color previews
#334fbb text on a black background
contrast 2.98:1
Card sample
#334fbb text on a white background
contrast 7.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #334fbb;
Background color
Panel with #334fbb background
background-color: #334fbb;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #334fbb;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 79, 187, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 79, 187, 0.45);
Border & gradient
Gradient panel
border: 3px solid #334fbb; background: linear-gradient(135deg, #334fbb, #7233BB);