#2f4ace
a balanced, vivid blue · warm · closest name: slateblue
RGB
47, 74, 206
HSL
230°, 63%, 50%
CMYK
77, 64, 0, 19
Luminance
0.0996
Every format
| HEX | #2f4ace |
| RGB | rgb(47, 74, 206) |
| HSL | hsl(230, 63%, 50%) |
| CMYK | cmyk(77%, 64%, 0%, 19%) |
| LAB | lab(37.8 37.0 -70.8) |
| LCH | lch(37.8 79.9 297.6) |
| OKLCH | oklch(0.478 0.205 268.2) |
Copy-ready code
/* CSS */
color: #2f4ace;
background-color: #2f4ace;
/* Tailwind (arbitrary) */
class="text-[#2f4ace] bg-[#2f4ace]"
/* SCSS */
$brand: #2f4ace;
/* SwiftUI */
Color(red: 0.184, green: 0.290, blue: 0.808)
/* Android */
Color.parseColor("#2f4ace")Accessibility — WCAG contrast
Aa
#2f4ace on white: 7.02:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2f4ace on black: 2.99:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.4%
Green29.0%
Blue80.8%
CMYK percentages
Cyan77.2%
Magenta64.1%
Yellow0.0%
Key (black)19.2%
Color previews
#2f4ace text on a black background
contrast 2.99:1
Card sample
#2f4ace text on a white background
contrast 7.02:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2f4ace;
Background color
Panel with #2f4ace background
background-color: #2f4ace;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2f4ace;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(47, 74, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 74, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4ace; background: linear-gradient(135deg, #2f4ace, #7E2FCE);