Skip to content

#2d7fdc

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

RGB
45, 127, 220
HSL
212°, 71%, 52%
CMYK
80, 42, 0, 14
Luminance
0.2090

Every format

HEX#2d7fdc
RGBrgb(45, 127, 220)
HSLhsl(212, 71%, 52%)
CMYKcmyk(80%, 42%, 0%, 14%)
LABlab(52.8 8.3 -54.4)
LCHlch(52.8 55.0 278.7)
OKLCHoklch(0.595 0.162 254.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2d7fdc on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#2d7fdc on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red17.6%
Green49.8%
Blue86.3%

CMYK percentages

Cyan79.5%
Magenta42.3%
Yellow0.0%
Key (black)13.7%

Color previews

#2d7fdc text on a black background

contrast 5.18:1

Card sample

#2d7fdc text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(45, 127, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(45, 127, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2d7fdc;
background: linear-gradient(135deg, #2d7fdc, #502DDC);

Monochromatic scale

Palettes built from #2d7fdc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2d7fdc in the Color Lab