Skip to content

#2afbfc

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

RGB
42, 251, 252
HSL
180°, 97%, 58%
CMYK
83, 0, 0, 1
Luminance
0.7651

Every format

HEX#2afbfc
RGBrgb(42, 251, 252)
HSLhsl(180, 97%, 58%)
CMYKcmyk(83%, 0%, 0%, 1%)
LABlab(90.1 -45.7 -14.1)
LCHlch(90.1 47.8 197.1)
OKLCHoklch(0.897 0.148 195.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2afbfc on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#2afbfc on black: 16.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green98.4%
Blue98.8%

CMYK percentages

Cyan83.3%
Magenta0.4%
Yellow0.0%
Key (black)1.2%

Color previews

#2afbfc text on a black background

contrast 16.30:1

Card sample

#2afbfc text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2afbfc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2afbfc in the Color Lab