Skip to content

#2af3fc

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

RGB
42, 243, 252
HSL
183°, 97%, 58%
CMYK
83, 4, 0, 1
Luminance
0.7162

Every format

HEX#2af3fc
RGBrgb(42, 243, 252)
HSLhsl(183, 97%, 58%)
CMYKcmyk(83%, 4%, 0%, 1%)
LABlab(87.8 -42.2 -17.5)
LCHlch(87.8 45.7 202.6)
OKLCHoklch(0.879 0.144 199.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af3fc on white: 1.37:1
AA ✗ fail · AA-large · AAA
Aa
#2af3fc on black: 15.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green95.3%
Blue98.8%

CMYK percentages

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

Color previews

#2af3fc text on a black background

contrast 15.32:1

Card sample

#2af3fc text on a white background

contrast 1.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af3fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af3fc in the Color Lab