Skip to content

#2f79db

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

RGB
47, 121, 219
HSL
214°, 71%, 52%
CMYK
79, 45, 0, 14
Luminance
0.1939

Every format

HEX#2f79db
RGBrgb(47, 121, 219)
HSLhsl(214, 71%, 52%)
CMYKcmyk(79%, 45%, 0%, 14%)
LABlab(51.1 11.9 -56.6)
LCHlch(51.1 57.8 281.8)
OKLCHoklch(0.582 0.167 256.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f79db on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#2f79db on black: 4.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green47.5%
Blue85.9%

CMYK percentages

Cyan78.5%
Magenta44.7%
Yellow0.0%
Key (black)14.1%

Color previews

#2f79db text on a black background

contrast 4.88:1

Card sample

#2f79db text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 121, 219, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 121, 219, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f79db;
background: linear-gradient(135deg, #2f79db, #582FDB);

Monochromatic scale

Palettes built from #2f79db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f79db in the Color Lab