Skip to content

#2f7dfd

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

RGB
47, 125, 253
HSL
217°, 98%, 59%
CMYK
81, 51, 0, 1
Luminance
0.2236

Every format

HEX#2f7dfd
RGBrgb(47, 125, 253)
HSLhsl(217, 98%, 59%)
CMYKcmyk(81%, 51%, 0%, 1%)
LABlab(54.4 22.1 -70.3)
LCHlch(54.4 73.7 287.4)
OKLCHoklch(0.614 0.206 260.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f7dfd on white: 3.84:1
AA ✗ fail · AA-large · AAA
Aa
#2f7dfd on black: 5.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green49.0%
Blue99.2%

CMYK percentages

Cyan81.4%
Magenta50.6%
Yellow0.0%
Key (black)0.8%

Color previews

#2f7dfd text on a black background

contrast 5.47:1

Card sample

#2f7dfd text on a white background

contrast 3.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f7dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f7dfd in the Color Lab