Skip to content

#2a6ade

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

RGB
42, 106, 222
HSL
219°, 73%, 52%
CMYK
81, 52, 0, 13
Luminance
0.1607

Every format

HEX#2a6ade
RGBrgb(42, 106, 222)
HSLhsl(219, 73%, 52%)
CMYKcmyk(81%, 52%, 0%, 13%)
LABlab(47.1 22.0 -64.8)
LCHlch(47.1 68.5 288.7)
OKLCHoklch(0.551 0.189 261.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2a6ade on white: 4.98:1
AA ✓ pass · AA-large · AAA
Aa
#2a6ade on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green41.6%
Blue87.1%

CMYK percentages

Cyan81.1%
Magenta52.3%
Yellow0.0%
Key (black)12.9%

Color previews

#2a6ade text on a black background

contrast 4.21:1

Card sample

#2a6ade text on a white background

contrast 4.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 106, 222, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 106, 222, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a6ade;
background: linear-gradient(135deg, #2a6ade, #622ADE);

Monochromatic scale

Palettes built from #2a6ade

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2a6ade in the Color Lab