Skip to content

#02affc

a balanced, electric cyan · cool · closest name: Deep Sky Blue

RGB
2, 175, 252
HSL
199°, 98%, 50%
CMYK
99, 31, 0, 1
Luminance
0.3770

At a glance

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

Hex
#02affc
Hue
199°
cyan
Saturation
98%
electric
Lightness
50%
balanced
Brightness
99%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3770
WCAG relative
Temperature
Cool
95/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
8.54:1
Closest name
Deep Sky Blue
ΔE2000 5.7
Where it sits
Hue199° of 360°
Saturation98%
Lightness50%
Temperature
Warm ← → Cool95% 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#02affc
RGBrgb(2, 175, 252)
HSLhsl(199, 98%, 50%)
CMYKcmyk(99%, 31%, 0%, 1%)
LABlab(67.8 -10.1 -48.4)
LCHlch(67.8 49.4 258.3)
OKLCHoklch(0.717 0.161 238.8)
Decimal176124
Display P3color(display-p3 0.008 0.686 0.988)

Copy-ready code

/* CSS */
color: #02affc;
background-color: #02affc;
/* Tailwind (arbitrary) */
class="text-[#02affc] bg-[#02affc]"
/* SCSS */
$brand: #02affc;
/* SwiftUI */
Color(red: 0.008, green: 0.686, blue: 0.988)
/* Android */
Color.parseColor("#02affc")
/* Flutter */
Color(0xFF02AFFC)
/* Python / OpenCV (BGR) */
(252, 175, 2)

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 #02affc · 8.54:1
Use #000000AAA at every size.
Aa
White text · 2.46:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.54:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #02affc as text scores 2.46:1 on white and 8.54:1 on black.

Accessibility — WCAG contrast

Aa
#02affc on white: 2.46:1
AA ✗ fail · AA-large · AAA
Aa
#02affc on black: 8.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #89B0FF
deuteranopia · #6B9CFB
tritanopia · #00C3CA

Color scale — 50 to 950

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

#F1FAFE
#E3F4FC
#C1E9FB
#90DCFE
#58CBFE
#20B9FD
#02affc
#028CCA
#0170A2
#065275
#043449
Base = 600Lightest = 50 · #F1FAFEDarkest = 950 · #043449
:root {
  --brand-50: #F1FAFE;
  --brand-100: #E3F4FC;
  --brand-200: #C1E9FB;
  --brand-300: #90DCFE;
  --brand-400: #58CBFE;
  --brand-500: #20B9FD;
  --brand-600: #02affc;
  --brand-700: #028CCA;
  --brand-800: #0170A2;
  --brand-900: #065275;
  --brand-950: #043449;
  --brand: #02affc;
  --brand-ink: #000000;
}

Colors that work with #02affc

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#F4F9FA
Tinted page background
Border#C0DFED
Hairlines and dividers
Muted text#4B829B
Captions on the surface
Accent#FE0F00
Second voice, not a rival
Dark variant#01587E
Hover, pressed, headers
Light variant#E6F7FF
Selected rows, tints
Dark surface#141F24
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 #02affc

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#FC4F02
Analogous left#02FCCC
Analogous right#0232FC
Split-complement 1#FC0232
Split-complement 2#FCCC02
Triadic 1#FC02AF
Triadic 2#AFFC02
Tetradic#CC02FC

RGB percentages

Red0.8%
Green68.6%
Blue98.8%

CMYK percentages

Cyan99.2%
Magenta30.6%
Yellow0.0%
Key (black)1.2%

Color previews

#02affc text on a black background

contrast 8.54:1

Card sample

#02affc text on a white background

contrast 2.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #02affc;
Background color
Panel with #02affc background
background-color: #02affc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 175, 252, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 175, 252, 0.45);
Border & gradient
Gradient panel
border: 3px solid #02affc;
background: linear-gradient(135deg, #02affc, #0208FC);

Monochromatic scale

Palettes built from #02affc

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.

#02affc 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.

#02affc, answered

What color is #02affc?

#02affc is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 5.7). It sits at 199° on the hue wheel with 98% saturation and 50% lightness, which reads as cool.

What is the RGB value of #02affc?

rgb(2, 175, 252) — 2 red, 175 green and 252 blue out of 255, or 0.8% / 68.6% / 98.8% by channel.

Is #02affc a light or a dark color?

It is a mid-tone. Relative luminance is 0.3770 and perceived brightness is 62%, so black text on it reaches 8.54:1.

Should I use black or white text on #02affc?

Black. It scores 8.54:1 against #02affc, versus 2.46:1 for white — AAA at any size.

What is the complementary color of #02affc?

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

What colors go well with #02affc?

For interface work: #F4F9FA as the surface, #C0DFED for borders, #4B829B for secondary text, #FE0F00 as an accent and #01587E for hover and pressed states. For a palette, the analogous pair #02FCCC and #0232FC stays calm, while #FC4F02 is the loudest partner.

What is #02affc in CMYK for printing?

cmyk(99%, 31%, 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 #02affc warm or cool?

Cool — it scores 95 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #02FCED; nudged cooler, #0088E4.

Work with #02affc in the Color Lab