Skip to content

#2f6dfd

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

RGB
47, 109, 253
HSL
222°, 98%, 59%
CMYK
81, 57, 0, 1
Luminance
0.1863

Every format

HEX#2f6dfd
RGBrgb(47, 109, 253)
HSLhsl(222, 98%, 59%)
CMYKcmyk(81%, 57%, 0%, 1%)
LABlab(50.3 32.0 -77.0)
LCHlch(50.3 83.4 292.6)
OKLCHoklch(0.583 0.224 263.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f6dfd on white: 4.44:1
AA ✗ fail · AA-large · AAA
Aa
#2f6dfd on black: 4.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green42.7%
Blue99.2%

CMYK percentages

Cyan81.4%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#2f6dfd text on a black background

contrast 4.73:1

Card sample

#2f6dfd text on a white background

contrast 4.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f6dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f6dfd in the Color Lab