Skip to content

#2af9ff

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

RGB
42, 249, 255
HSL
182°, 100%, 58%
CMYK
84, 2, 0, 0
Luminance
0.7546

Every format

HEX#2af9ff
RGBrgb(42, 249, 255)
HSLhsl(182, 100%, 58%)
CMYKcmyk(84%, 2%, 0%, 0%)
LABlab(89.6 -44.0 -16.4)
LCHlch(89.6 46.9 200.4)
OKLCHoklch(0.894 0.147 198.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af9ff on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#2af9ff on black: 16.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green97.6%
Blue100.0%

CMYK percentages

Cyan83.5%
Magenta2.4%
Yellow0.0%
Key (black)0.0%

Color previews

#2af9ff text on a black background

contrast 16.09:1

Card sample

#2af9ff text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af9ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af9ff in the Color Lab