Skip to content

#2f4ddc

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

RGB
47, 77, 220
HSL
230°, 71%, 52%
CMYK
79, 65, 0, 14
Luminance
0.1108

Every format

HEX#2f4ddc
RGBrgb(47, 77, 220)
HSLhsl(230, 71%, 52%)
CMYKcmyk(79%, 65%, 0%, 14%)
LABlab(39.7 40.1 -75.7)
LCHlch(39.7 85.7 297.9)
OKLCHoklch(0.496 0.219 267.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f4ddc on white: 6.53:1
AA ✓ pass · AA-large · AAA
Aa
#2f4ddc on black: 3.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green30.2%
Blue86.3%

CMYK percentages

Cyan78.6%
Magenta65.0%
Yellow0.0%
Key (black)13.7%

Color previews

#2f4ddc text on a black background

contrast 3.22:1

Card sample

#2f4ddc text on a white background

contrast 6.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f4ddc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f4ddc in the Color Lab