Skip to content

#2f4dad

a dark, vivid blue · warm · closest name: royalblue

RGB
47, 77, 173
HSL
226°, 57%, 43%
CMYK
73, 56, 0, 32
Luminance
0.0893

Every format

HEX#2f4dad
RGBrgb(47, 77, 173)
HSLhsl(226, 57%, 43%)
CMYKcmyk(73%, 56%, 0%, 32%)
LABlab(35.9 22.9 -54.6)
LCHlch(35.9 59.2 292.7)
OKLCHoklch(0.455 0.158 266.8)

Copy-ready code

/* CSS */
color: #2f4dad;
background-color: #2f4dad;
/* Tailwind (arbitrary) */
class="text-[#2f4dad] bg-[#2f4dad]"
/* SCSS */
$brand: #2f4dad;
/* SwiftUI */
Color(red: 0.184, green: 0.302, blue: 0.678)
/* Android */
Color.parseColor("#2f4dad")

Accessibility — WCAG contrast

Aa
#2f4dad on white: 7.54:1
AA ✓ pass · AA-large · AAA
Aa
#2f4dad on black: 2.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green30.2%
Blue67.8%

CMYK percentages

Cyan72.8%
Magenta55.5%
Yellow0.0%
Key (black)32.2%

Color previews

#2f4dad text on a black background

contrast 2.79:1

Card sample

#2f4dad text on a white background

contrast 7.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f4dad;
Background color
Panel with #2f4dad background
background-color: #2f4dad;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #2f4dad;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(47, 77, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 77, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f4dad;
background: linear-gradient(135deg, #2f4dad, #652FAD);

Monochromatic scale

Palettes built from #2f4dad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4dad in the Color Lab