Skip to content

#2b6df2

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

RGB
43, 109, 242
HSL
220°, 88%, 56%
CMYK
82, 55, 0, 5
Luminance
0.1786

Every format

HEX#2b6df2
RGBrgb(43, 109, 242)
HSLhsl(220, 88%, 56%)
CMYKcmyk(82%, 55%, 0%, 5%)
LABlab(49.3 27.7 -72.4)
LCHlch(49.3 77.5 290.9)
OKLCHoklch(0.573 0.211 262.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2b6df2 on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#2b6df2 on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.9%
Green42.7%
Blue94.9%

CMYK percentages

Cyan82.2%
Magenta55.0%
Yellow0.0%
Key (black)5.1%

Color previews

#2b6df2 text on a black background

contrast 4.57:1

Card sample

#2b6df2 text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(43, 109, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(43, 109, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2b6df2;
background: linear-gradient(135deg, #2b6df2, #6E2BF2);

Monochromatic scale

Palettes built from #2b6df2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2b6df2 in the Color Lab