Skip to content

#2af5f0

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

RGB
42, 245, 240
HSL
179°, 91%, 56%
CMYK
83, 0, 2, 4
Luminance
0.7209

Every format

HEX#2af5f0
RGBrgb(42, 245, 240)
HSLhsl(179, 91%, 56%)
CMYKcmyk(83%, 0%, 2%, 4%)
LABlab(88.0 -46.5 -10.9)
LCHlch(88.0 47.8 193.2)
OKLCHoklch(0.879 0.145 192.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af5f0 on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#2af5f0 on black: 15.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green96.1%
Blue94.1%

CMYK percentages

Cyan82.9%
Magenta0.0%
Yellow2.0%
Key (black)3.9%

Color previews

#2af5f0 text on a black background

contrast 15.42:1

Card sample

#2af5f0 text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af5f0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af5f0 in the Color Lab