Skip to content

#2f7fee

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

RGB
47, 127, 238
HSL
215°, 85%, 56%
CMYK
80, 47, 0, 7
Luminance
0.2196

Every format

HEX#2f7fee
RGBrgb(47, 127, 238)
HSLhsl(215, 85%, 56%)
CMYKcmyk(80%, 47%, 0%, 7%)
LABlab(54.0 15.2 -62.7)
LCHlch(54.0 64.5 283.7)
OKLCHoklch(0.608 0.184 257.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f7fee on white: 3.90:1
AA ✗ fail · AA-large · AAA
Aa
#2f7fee on black: 5.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green49.8%
Blue93.3%

CMYK percentages

Cyan80.3%
Magenta46.6%
Yellow0.0%
Key (black)6.7%

Color previews

#2f7fee text on a black background

contrast 5.39:1

Card sample

#2f7fee text on a white background

contrast 3.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 127, 238, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 127, 238, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f7fee;
background: linear-gradient(135deg, #2f7fee, #5E2FEE);

Monochromatic scale

Palettes built from #2f7fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f7fee in the Color Lab