Skip to content

#2f6def

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

RGB
47, 109, 239
HSL
221°, 86%, 56%
CMYK
80, 54, 0, 6
Luminance
0.1777

Every format

HEX#2f6def
RGBrgb(47, 109, 239)
HSLhsl(221, 86%, 56%)
CMYKcmyk(80%, 54%, 0%, 6%)
LABlab(49.2 26.9 -70.9)
LCHlch(49.2 75.8 290.8)
OKLCHoklch(0.572 0.206 262.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f6def on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#2f6def on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green42.7%
Blue93.7%

CMYK percentages

Cyan80.3%
Magenta54.4%
Yellow0.0%
Key (black)6.3%

Color previews

#2f6def text on a black background

contrast 4.55:1

Card sample

#2f6def text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(47, 109, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(47, 109, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2f6def;
background: linear-gradient(135deg, #2f6def, #712FEF);

Monochromatic scale

Palettes built from #2f6def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f6def in the Color Lab