Skip to content

#2af5fc

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

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

Every format

HEX#2af5fc
RGBrgb(42, 245, 252)
HSLhsl(182, 97%, 58%)
CMYKcmyk(83%, 3%, 0%, 1%)
LABlab(88.4 -43.1 -16.7)
LCHlch(88.4 46.2 201.2)
OKLCHoklch(0.883 0.145 198.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af5fc on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#2af5fc on black: 15.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green96.1%
Blue98.8%

CMYK percentages

Cyan83.3%
Magenta2.8%
Yellow0.0%
Key (black)1.2%

Color previews

#2af5fc text on a black background

contrast 15.57:1

Card sample

#2af5fc text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af5fc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af5fc in the Color Lab