Skip to content

#2af4fc

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

RGB
42, 244, 252
HSL
182°, 97%, 58%
CMYK
83, 3, 0, 1
Luminance
0.7222

Every format

HEX#2af4fc
RGBrgb(42, 244, 252)
HSLhsl(182, 97%, 58%)
CMYKcmyk(83%, 3%, 0%, 1%)
LABlab(88.1 -42.6 -17.1)
LCHlch(88.1 45.9 201.9)
OKLCHoklch(0.881 0.144 199.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red16.5%
Green95.7%
Blue98.8%

CMYK percentages

Cyan83.3%
Magenta3.2%
Yellow0.0%
Key (black)1.2%

Color previews

#2af4fc text on a black background

contrast 15.44:1

Card sample

#2af4fc text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af4fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af4fc in the Color Lab