Skip to content

#2d7dfb

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

RGB
45, 125, 251
HSL
217°, 96%, 58%
CMYK
82, 50, 0, 2
Luminance
0.2219

Every format

HEX#2d7dfb
RGBrgb(45, 125, 251)
HSLhsl(217, 96%, 58%)
CMYKcmyk(82%, 50%, 0%, 2%)
LABlab(54.2 21.1 -69.5)
LCHlch(54.2 72.6 286.9)
OKLCHoklch(0.612 0.204 259.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d7dfb on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#2d7dfb on black: 5.44:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green49.0%
Blue98.4%

CMYK percentages

Cyan82.1%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#2d7dfb text on a black background

contrast 5.44:1

Card sample

#2d7dfb text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 125, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 125, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d7dfb;
background: linear-gradient(135deg, #2d7dfb, #662DFB);

Monochromatic scale

Palettes built from #2d7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d7dfb in the Color Lab