Skip to content

#2ab6fc

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

RGB
42, 182, 252
HSL
200°, 97%, 58%
CMYK
83, 28, 0, 1
Luminance
0.4098

Every format

HEX#2ab6fc
RGBrgb(42, 182, 252)
HSLhsl(200, 97%, 58%)
CMYKcmyk(83%, 28%, 0%, 1%)
LABlab(70.2 -12.1 -44.6)
LCHlch(70.2 46.3 254.8)
OKLCHoklch(0.737 0.150 237.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab6fc on white: 2.28:1
AA ✗ fail · AA-large · AAA
Aa
#2ab6fc on black: 9.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green71.4%
Blue98.8%

CMYK percentages

Cyan83.3%
Magenta27.8%
Yellow0.0%
Key (black)1.2%

Color previews

#2ab6fc text on a black background

contrast 9.20:1

Card sample

#2ab6fc text on a white background

contrast 2.28:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(42, 182, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(42, 182, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2ab6fc;
background: linear-gradient(135deg, #2ab6fc, #2A2AFC);

Monochromatic scale

Palettes built from #2ab6fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ab6fc in the Color Lab