Skip to content

#2ab4f2

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

RGB
42, 180, 242
HSL
199°, 89%, 56%
CMYK
83, 26, 0, 5
Luminance
0.3955

Every format

HEX#2ab4f2
RGBrgb(42, 180, 242)
HSLhsl(199, 89%, 56%)
CMYKcmyk(83%, 26%, 0%, 5%)
LABlab(69.1 -14.5 -40.8)
LCHlch(69.1 43.3 250.4)
OKLCHoklch(0.727 0.142 234.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab4f2 on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#2ab4f2 on black: 8.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green70.6%
Blue94.9%

CMYK percentages

Cyan82.6%
Magenta25.6%
Yellow0.0%
Key (black)5.1%

Color previews

#2ab4f2 text on a black background

contrast 8.91:1

Card sample

#2ab4f2 text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab4f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ab4f2 in the Color Lab