Skip to content

#04afdc

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

RGB
4, 175, 220
HSL
193°, 96%, 44%
CMYK
98, 21, 0, 14
Luminance
0.3585

At a glance

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

Hex
#04afdc
Hue
193°
cyan
Saturation
96%
electric
Lightness
44%
dark
Brightness
86%
HSV value
Perceived
60%
weighted brightness
Luminance
0.3585
WCAG relative
Temperature
Cool
93/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
8.17:1
Closest name
Deep Sky Blue
ΔE2000 6.3
Where it sits
Hue193° of 360°
Saturation96%
Lightness44%
Temperature
Warm ← → Cool93% 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#04afdc
RGBrgb(4, 175, 220)
HSLhsl(193, 96%, 44%)
CMYKcmyk(98%, 21%, 0%, 14%)
LABlab(66.4 -21.3 -33.1)
LCHlch(66.4 39.4 237.2)
OKLCHoklch(0.701 0.132 224.8)
Decimal307164
Display P3color(display-p3 0.016 0.686 0.863)

Copy-ready code

/* CSS */
color: #04afdc;
background-color: #04afdc;
/* Tailwind (arbitrary) */
class="text-[#04afdc] bg-[#04afdc]"
/* SCSS */
$brand: #04afdc;
/* SwiftUI */
Color(red: 0.016, green: 0.686, blue: 0.863)
/* Android */
Color.parseColor("#04afdc")
/* Flutter */
Color(0xFF04AFDC)
/* Python / OpenCV (BGR) */
(220, 175, 4)

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

Accessibility — WCAG contrast

Aa
#04afdc on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#04afdc on black: 8.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #96ABDE
deuteranopia · #7D9ADB
tritanopia · #00BCBE

Color scale — 50 to 950

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

#F1FBFD
#E4F7FC
#C1EFFA
#91E6FD
#5ADAFC
#23CEFB
#04BFF0
#04afdc
#037FA0
#075D73
#043A48
Base = 700Lightest = 50 · #F1FBFDDarkest = 950 · #043A48
:root {
  --brand-50: #F1FBFD;
  --brand-100: #E4F7FC;
  --brand-200: #C1EFFA;
  --brand-300: #91E6FD;
  --brand-400: #5ADAFC;
  --brand-500: #23CEFB;
  --brand-600: #04BFF0;
  --brand-700: #04afdc;
  --brand-800: #037FA0;
  --brand-900: #075D73;
  --brand-950: #043A48;
  --brand: #04afdc;
  --brand-ink: #000000;
}

Colors that work with #04afdc

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#C0E3ED
Hairlines and dividers
Muted text#4B8A9B
Captions on the surface
Accent#E00009
Second voice, not a rival
Dark variant#02647D
Hover, pressed, headers
Light variant#E6F9FF
Selected rows, tints
Dark surface#142124
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 #04afdc

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
  • Headers, footers and dark-mode surfaces
  • 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
  • Black text placed on it
  • 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#DC3104
Analogous left#04DC9D
Analogous right#0443DC
Split-complement 1#DC0443
Split-complement 2#DC9D04
Triadic 1#DC04AF
Triadic 2#AFDC04
Tetradic#9D04DC

RGB percentages

Red1.6%
Green68.6%
Blue86.3%

CMYK percentages

Cyan98.2%
Magenta20.5%
Yellow0.0%
Key (black)13.7%

Color previews

#04afdc text on a black background

contrast 8.17:1

Card sample

#04afdc text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #04afdc;
Background color
Panel with #04afdc background
background-color: #04afdc;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(4, 175, 220, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(4, 175, 220, 0.45);
Border & gradient
Gradient panel
border: 3px solid #04afdc;
background: linear-gradient(135deg, #04afdc, #041FDC);

Monochromatic scale

Palettes built from #04afdc

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.

#04afdc 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.

#04afdc, answered

What color is #04afdc?

#04afdc is a dark electric cyan, closest to Deep Sky Blue (ΔE2000 6.3). It sits at 193° on the hue wheel with 96% saturation and 44% lightness, which reads as cool.

What is the RGB value of #04afdc?

rgb(4, 175, 220) — 4 red, 175 green and 220 blue out of 255, or 1.6% / 68.6% / 86.3% by channel.

Is #04afdc a light or a dark color?

It is a mid-tone. Relative luminance is 0.3585 and perceived brightness is 60%, so black text on it reaches 8.17:1.

Should I use black or white text on #04afdc?

Black. It scores 8.17:1 against #04afdc, versus 2.57:1 for white — AAA at any size.

What is the complementary color of #04afdc?

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

What colors go well with #04afdc?

For interface work: #F4F9FA as the surface, #C0E3ED for borders, #4B8A9B for secondary text, #E00009 as an accent and #02647D for hover and pressed states. For a palette, the analogous pair #04DC9D and #0443DC stays calm, while #DC3104 is the loudest partner.

What is #04afdc in CMYK for printing?

cmyk(98%, 21%, 0%, 14%). 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 #04afdc warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #04DCBA; nudged cooler, #028FDE.

Work with #04afdc in the Color Lab