Skip to content

#2f5dce

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

RGB
47, 93, 206
HSL
223°, 63%, 50%
CMYK
77, 55, 0, 19
Luminance
0.1289

Every format

HEX#2f5dce
RGBrgb(47, 93, 206)
HSLhsl(223, 63%, 50%)
CMYKcmyk(77%, 55%, 0%, 19%)
LABlab(42.6 24.8 -63.0)
LCHlch(42.6 67.7 291.5)
OKLCHoklch(0.514 0.182 264.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f5dce on white: 5.87:1
AA ✓ pass · AA-large · AAA
Aa
#2f5dce on black: 3.58:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green36.5%
Blue80.8%

CMYK percentages

Cyan77.2%
Magenta54.9%
Yellow0.0%
Key (black)19.2%

Color previews

#2f5dce text on a black background

contrast 3.58:1

Card sample

#2f5dce text on a white background

contrast 5.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 93, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 93, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f5dce;
background: linear-gradient(135deg, #2f5dce, #6B2FCE);

Monochromatic scale

Palettes built from #2f5dce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f5dce in the Color Lab