#2f5fac
a dark, vivid blue · cool · closest name: steelblue
RGB
47, 95, 172
HSL
217°, 57%, 43%
CMYK
73, 45, 0, 33
Luminance
0.1177
Every format
| HEX | #2f5fac |
| RGB | rgb(47, 95, 172) |
| HSL | hsl(217, 57%, 43%) |
| CMYK | cmyk(73%, 45%, 0%, 33%) |
| LAB | lab(40.8 10.7 -46.0) |
| LCH | lch(40.8 47.2 283.1) |
| OKLCH | oklch(0.493 0.134 259.5) |
Copy-ready code
/* CSS */
color: #2f5fac;
background-color: #2f5fac;
/* Tailwind (arbitrary) */
class="text-[#2f5fac] bg-[#2f5fac]"
/* SCSS */
$brand: #2f5fac;
/* SwiftUI */
Color(red: 0.184, green: 0.373, blue: 0.675)
/* Android */
Color.parseColor("#2f5fac")Accessibility — WCAG contrast
Aa
#2f5fac on white: 6.26:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#2f5fac on black: 3.35:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.4%
Green37.3%
Blue67.5%
CMYK percentages
Cyan72.7%
Magenta44.8%
Yellow0.0%
Key (black)32.5%
Color previews
#2f5fac text on a black background
contrast 3.35:1
Card sample
#2f5fac text on a white background
contrast 6.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2f5fac;
Background color
Panel with #2f5fac background
background-color: #2f5fac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2f5fac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(47, 95, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 95, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5fac; background: linear-gradient(135deg, #2f5fac, #522FAC);