Skip to content

#2afbfd

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

RGB
42, 251, 253
HSL
181°, 98%, 58%
CMYK
83, 1, 0, 1
Luminance
0.7658

At a glance

Every number on this page in one read: what #2afbfd is made of, how bright it looks, and which way it leans.

Hex
#2afbfd
Hue
181°
cyan
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
83%
weighted brightness
Luminance
0.7658
WCAG relative
Temperature
Cool
88/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
16.32:1
Closest name
Cyan
ΔE2000 1.2
Where it sits
Hue181° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool88% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#2afbfd
RGBrgb(42, 251, 253)
HSLhsl(181, 98%, 58%)
CMYKcmyk(83%, 1%, 0%, 1%)
LABlab(90.1 -45.4 -14.6)
LCHlch(90.1 47.7 197.8)
OKLCHoklch(0.898 0.148 195.9)
Decimal2817021
Display P3color(display-p3 0.165 0.984 0.992)

Copy-ready code

/* CSS */
color: #2afbfd;
background-color: #2afbfd;
/* Tailwind (arbitrary) */
class="text-[#2afbfd] bg-[#2afbfd]"
/* SCSS */
$brand: #2afbfd;
/* SwiftUI */
Color(red: 0.165, green: 0.984, blue: 0.992)
/* Android */
Color.parseColor("#2afbfd")
/* Flutter */
Color(0xFF2AFBFD)
/* Python / OpenCV (BGR) */
(253, 251, 42)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #2afbfd · 16.32:1
Use #000000AAA at every size.
Aa
White text · 1.29:1
AA fail · AA large fail · AAA fail
Aa
Black text · 16.32:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #2afbfd as text scores 1.29:1 on white and 16.32:1 on black.

Accessibility — WCAG contrast

Aa
#2afbfd on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#2afbfd on black: 16.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #E9EEFE
deuteranopia · #CEDAFE
tritanopia · #00FFFB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #2afbfd is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1FDFD
#E3FCFC
#C1FAFB
#90FDFE
#58FCFD
#2afbfd
#02F0F2
#02C8CA
#02A0A2
#067374
#044849
Base = 500Lightest = 50 · #F1FDFDDarkest = 950 · #044849
:root {
  --brand-50: #F1FDFD;
  --brand-100: #E3FCFC;
  --brand-200: #C1FAFB;
  --brand-300: #90FDFE;
  --brand-400: #58FCFD;
  --brand-500: #2afbfd;
  --brand-600: #02F0F2;
  --brand-700: #02C8CA;
  --brand-800: #02A0A2;
  --brand-900: #067374;
  --brand-950: #044849;
  --brand: #2afbfd;
  --brand-ink: #000000;
}

Colors that work with #2afbfd

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4FAFA
Tinted page background
Border#C0ECED
Hairlines and dividers
Muted text#4B9A9B
Captions on the surface
Accent#FF285B
Second voice, not a rival
Dark variant#017D7E
Hover, pressed, headers
Light variant#E6FFFF
Selected rows, tints
Dark surface#142424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #2afbfd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#FD2C2A
Analogous left#2AFD96
Analogous right#2A91FD
Split-complement 1#FD2A91
Split-complement 2#FD962A
Triadic 1#FD2AFB
Triadic 2#FBFD2A
Tetradic#962AFD

RGB percentages

Red16.5%
Green98.4%
Blue99.2%

CMYK percentages

Cyan83.4%
Magenta0.8%
Yellow0.0%
Key (black)0.8%

Color previews

#2afbfd text on a black background

contrast 16.32:1

Card sample

#2afbfd text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2afbfd

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#2afbfd in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyTravelHealthcareMedia
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#2afbfd, answered

What color is #2afbfd?

#2afbfd is a balanced electric cyan, closest to Cyan (ΔE2000 1.2). It sits at 181° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #2afbfd?

rgb(42, 251, 253) — 42 red, 251 green and 253 blue out of 255, or 16.5% / 98.4% / 99.2% by channel.

Is #2afbfd a light or a dark color?

It is a light color. Relative luminance is 0.7658 and perceived brightness is 83%, so black text on it reaches 16.32:1.

Should I use black or white text on #2afbfd?

Black. It scores 16.32:1 against #2afbfd, versus 1.29:1 for white — AAA at any size.

What is the complementary color of #2afbfd?

#FD2C2A sits directly opposite on the wheel. Softer options are the split-complements #FD2A91 and #FD962A, which give the same contrast with far less vibration.

What colors go well with #2afbfd?

For interface work: #F4FAFA as the surface, #C0ECED for borders, #4B9A9B for secondary text, #FF285B as an accent and #017D7E for hover and pressed states. For a palette, the analogous pair #2AFD96 and #2A91FD stays calm, while #FD2C2A is the loudest partner.

What is #2afbfd in CMYK for printing?

cmyk(83%, 1%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #2afbfd warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #2AFDB2; nudged cooler, #28C8FF.

Work with #2afbfd in the Color Lab