#2f4fac
a dark, vivid blue · cool · closest name: royalblue
RGB
47, 79, 172
HSL
225°, 57%, 43%
CMYK
73, 54, 0, 33
Luminance
0.0917
Every format
| HEX | #2f4fac |
| RGB | rgb(47, 79, 172) |
| HSL | hsl(225, 57%, 43%) |
| CMYK | cmyk(73%, 54%, 0%, 33%) |
| LAB | lab(36.3 21.2 -53.3) |
| LCH | lch(36.3 57.3 291.7) |
| OKLCH | oklch(0.459 0.154 266.1) |
Copy-ready code
/* CSS */
color: #2f4fac;
background-color: #2f4fac;
/* Tailwind (arbitrary) */
class="text-[#2f4fac] bg-[#2f4fac]"
/* SCSS */
$brand: #2f4fac;
/* SwiftUI */
Color(red: 0.184, green: 0.310, blue: 0.675)
/* Android */
Color.parseColor("#2f4fac")Accessibility — WCAG contrast
Aa
#2f4fac on white: 7.41:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#2f4fac on black: 2.83:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.4%
Green31.0%
Blue67.5%
CMYK percentages
Cyan72.7%
Magenta54.1%
Yellow0.0%
Key (black)32.5%
Color previews
#2f4fac text on a black background
contrast 2.83:1
Card sample
#2f4fac text on a white background
contrast 7.41:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #2f4fac;
Background color
Panel with #2f4fac background
background-color: #2f4fac;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #2f4fac;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(47, 79, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 79, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4fac; background: linear-gradient(135deg, #2f4fac, #622FAC);