Skip to content

#2aaaff

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

RGB
42, 170, 255
HSL
204°, 100%, 58%
CMYK
84, 33, 0, 0
Luminance
0.3646

Every format

HEX#2aaaff
RGBrgb(42, 170, 255)
HSLhsl(204, 100%, 58%)
CMYKcmyk(84%, 33%, 0%, 0%)
LABlab(66.9 -4.5 -51.4)
LCHlch(66.9 51.6 265.1)
OKLCHoklch(0.711 0.163 244.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2aaaff on white: 2.53:1
AA ✗ fail · AA-large · AAA
Aa
#2aaaff on black: 8.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green66.7%
Blue100.0%

CMYK percentages

Cyan83.5%
Magenta33.3%
Yellow0.0%
Key (black)0.0%

Color previews

#2aaaff text on a black background

contrast 8.29:1

Card sample

#2aaaff text on a white background

contrast 2.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 170, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 170, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2aaaff;
background: linear-gradient(135deg, #2aaaff, #382AFF);

Monochromatic scale

Palettes built from #2aaaff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2aaaff in the Color Lab