Skip to content

#2af1fe

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

RGB
42, 241, 254
HSL
184°, 99%, 58%
CMYK
84, 5, 0, 0
Luminance
0.7056

Every format

HEX#2af1fe
RGBrgb(42, 241, 254)
HSLhsl(184, 99%, 58%)
CMYKcmyk(84%, 5%, 0%, 0%)
LABlab(87.3 -40.7 -19.4)
LCHlch(87.3 45.1 205.4)
OKLCHoklch(0.875 0.143 202.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2af1fe on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#2af1fe on black: 15.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red16.5%
Green94.5%
Blue99.6%

CMYK percentages

Cyan83.5%
Magenta5.1%
Yellow0.0%
Key (black)0.4%

Color previews

#2af1fe text on a black background

contrast 15.11:1

Card sample

#2af1fe text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2af1fe

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2af1fe in the Color Lab