Skip to content

#2f89fc

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

RGB
47, 137, 252
HSL
214°, 97%, 59%
CMYK
81, 46, 0, 1
Luminance
0.2552

Every format

HEX#2f89fc
RGBrgb(47, 137, 252)
HSLhsl(214, 97%, 59%)
CMYKcmyk(81%, 46%, 0%, 1%)
LABlab(57.6 14.3 -64.6)
LCHlch(57.6 66.2 282.5)
OKLCHoklch(0.638 0.191 256.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f89fc on white: 3.44:1
AA ✗ fail · AA-large · AAA
Aa
#2f89fc on black: 6.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green53.7%
Blue98.8%

CMYK percentages

Cyan81.3%
Magenta45.6%
Yellow0.0%
Key (black)1.2%

Color previews

#2f89fc text on a black background

contrast 6.10:1

Card sample

#2f89fc text on a white background

contrast 3.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f89fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f89fc in the Color Lab