Skip to content

#2af5fa

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

RGB
42, 245, 250
HSL
181°, 95%, 57%
CMYK
83, 2, 0, 2
Luminance
0.7270

Every format

HEX#2af5fa
RGBrgb(42, 245, 250)
HSLhsl(181, 95%, 57%)
CMYKcmyk(83%, 2%, 0%, 2%)
LABlab(88.3 -43.7 -15.7)
LCHlch(88.3 46.4 199.8)
OKLCHoklch(0.883 0.145 197.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af5fa on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#2af5fa on black: 15.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green96.1%
Blue98.0%

CMYK percentages

Cyan83.2%
Magenta2.0%
Yellow0.0%
Key (black)2.0%

Color previews

#2af5fa text on a black background

contrast 15.54:1

Card sample

#2af5fa text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af5fa

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af5fa in the Color Lab