Skip to content

#2e6dfb

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

RGB
46, 109, 251
HSL
222°, 96%, 58%
CMYK
82, 57, 0, 2
Luminance
0.1848

Every format

HEX#2e6dfb
RGBrgb(46, 109, 251)
HSLhsl(222, 96%, 58%)
CMYKcmyk(82%, 57%, 0%, 2%)
LABlab(50.1 31.2 -76.2)
LCHlch(50.1 82.4 292.3)
OKLCHoklch(0.581 0.222 263.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2e6dfb on white: 4.47:1
AA ✗ fail · AA-large · AAA
Aa
#2e6dfb on black: 4.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.0%
Green42.7%
Blue98.4%

CMYK percentages

Cyan81.7%
Magenta56.6%
Yellow0.0%
Key (black)1.6%

Color previews

#2e6dfb text on a black background

contrast 4.70:1

Card sample

#2e6dfb text on a white background

contrast 4.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(46, 109, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(46, 109, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2e6dfb;
background: linear-gradient(135deg, #2e6dfb, #782EFB);

Monochromatic scale

Palettes built from #2e6dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2e6dfb in the Color Lab