Skip to content

#2ab5fa

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

RGB
42, 181, 250
HSL
200°, 95%, 57%
CMYK
83, 28, 0, 2
Luminance
0.4044

Every format

HEX#2ab5fa
RGBrgb(42, 181, 250)
HSLhsl(200, 95%, 57%)
CMYKcmyk(83%, 28%, 0%, 2%)
LABlab(69.8 -12.3 -44.1)
LCHlch(69.8 45.8 254.4)
OKLCHoklch(0.734 0.149 236.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2ab5fa on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#2ab5fa on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green71.0%
Blue98.0%

CMYK percentages

Cyan83.2%
Magenta27.6%
Yellow0.0%
Key (black)2.0%

Color previews

#2ab5fa text on a black background

contrast 9.09:1

Card sample

#2ab5fa text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2ab5fa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2ab5fa in the Color Lab