Skip to content

#2a7ace

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

RGB
42, 122, 206
HSL
211°, 66%, 49%
CMYK
80, 41, 0, 19
Luminance
0.1887

Every format

HEX#2a7ace
RGBrgb(42, 122, 206)
HSLhsl(211, 66%, 49%)
CMYKcmyk(80%, 41%, 0%, 19%)
LABlab(50.5 5.8 -50.2)
LCHlch(50.5 50.5 276.6)
OKLCHoklch(0.575 0.150 253.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2a7ace on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#2a7ace on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green47.8%
Blue80.8%

CMYK percentages

Cyan79.6%
Magenta40.8%
Yellow0.0%
Key (black)19.2%

Color previews

#2a7ace text on a black background

contrast 4.77:1

Card sample

#2a7ace text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 122, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 122, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2a7ace;
background: linear-gradient(135deg, #2a7ace, #472ACE);

Monochromatic scale

Palettes built from #2a7ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2a7ace in the Color Lab