Skip to content

#40c9fe

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

RGB
64, 201, 254
HSL
197°, 99%, 62%
CMYK
75, 21, 0, 0
Luminance
0.5002

At a glance

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

Hex
#40c9fe
Hue
197°
cyan
Saturation
99%
electric
Lightness
62%
balanced
Brightness
100%
HSV value
Perceived
70%
weighted brightness
Luminance
0.5002
WCAG relative
Temperature
Cool
94/100 cool
Color family
Cyan
Tone
Electric
Best ink
Black
11.00:1
Closest name
Deep Sky Blue
ΔE2000 3.5
Where it sits
Hue197° of 360°
Saturation99%
Lightness62%
Temperature
Warm ← → Cool94% 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#40c9fe
RGBrgb(64, 201, 254)
HSLhsl(197, 99%, 62%)
CMYKcmyk(75%, 21%, 0%, 0%)
LABlab(76.1 -19.5 -36.5)
LCHlch(76.1 41.3 241.9)
OKLCHoklch(0.785 0.136 228.7)
Decimal4246014
Display P3color(display-p3 0.251 0.788 0.996)

Copy-ready code

/* CSS */
color: #40c9fe;
background-color: #40c9fe;
/* Tailwind (arbitrary) */
class="text-[#40c9fe] bg-[#40c9fe]"
/* SCSS */
$brand: #40c9fe;
/* SwiftUI */
Color(red: 0.251, green: 0.788, blue: 0.996)
/* Android */
Color.parseColor("#40c9fe")
/* Flutter */
Color(0xFF40C9FE)
/* Python / OpenCV (BGR) */
(254, 201, 64)

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

Accessibility — WCAG contrast

Aa
#40c9fe on white: 1.91:1
AA ✗ fail · AA-large · AAA
Aa
#40c9fe on black: 11.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #ADC6FF
deuteranopia · #94B4FD
tritanopia · #00D8DB

Color scale — 50 to 950

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

#F1FAFE
#E3F5FC
#C0EBFB
#8FE0FE
#40c9fe
#20C0FE
#01B0F4
#0193CB
#0175A2
#055675
#033649
Base = 400Lightest = 50 · #F1FAFEDarkest = 950 · #033649
:root {
  --brand-50: #F1FAFE;
  --brand-100: #E3F5FC;
  --brand-200: #C0EBFB;
  --brand-300: #8FE0FE;
  --brand-400: #40c9fe;
  --brand-500: #20C0FE;
  --brand-600: #01B0F4;
  --brand-700: #0193CB;
  --brand-800: #0175A2;
  --brand-900: #055675;
  --brand-950: #033649;
  --brand: #40c9fe;
  --brand-ink: #000000;
}

Colors that work with #40c9fe

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#C0E0ED
Hairlines and dividers
Muted text#4B859B
Captions on the surface
Accent#FF453F
Second voice, not a rival
Dark variant#015C7F
Hover, pressed, headers
Light variant#E6F8FF
Selected rows, tints
Dark surface#142024
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 #40c9fe

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#FE7540
Analogous left#40FED4
Analogous right#406AFE
Split-complement 1#FE406A
Split-complement 2#FED440
Triadic 1#FE40C9
Triadic 2#C9FE40
Tetradic#D440FE

RGB percentages

Red25.1%
Green78.8%
Blue99.6%

CMYK percentages

Cyan74.8%
Magenta20.9%
Yellow0.0%
Key (black)0.4%

Color previews

#40c9fe text on a black background

contrast 11.00:1

Card sample

#40c9fe text on a white background

contrast 1.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #40c9fe;
Background color
Panel with #40c9fe background
background-color: #40c9fe;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 201, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 201, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40c9fe;
background: linear-gradient(135deg, #40c9fe, #404BFE);

Monochromatic scale

Palettes built from #40c9fe

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.

#40c9fe 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.

#40c9fe, answered

What color is #40c9fe?

#40c9fe is a balanced electric cyan, closest to Deep Sky Blue (ΔE2000 3.5). It sits at 197° on the hue wheel with 99% saturation and 62% lightness, which reads as cool.

What is the RGB value of #40c9fe?

rgb(64, 201, 254) — 64 red, 201 green and 254 blue out of 255, or 25.1% / 78.8% / 99.6% by channel.

Is #40c9fe a light or a dark color?

It is a light color. Relative luminance is 0.5002 and perceived brightness is 70%, so black text on it reaches 11.00:1.

Should I use black or white text on #40c9fe?

Black. It scores 11.00:1 against #40c9fe, versus 1.91:1 for white — AAA at any size.

What is the complementary color of #40c9fe?

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

What colors go well with #40c9fe?

For interface work: #F4F9FA as the surface, #C0E0ED for borders, #4B859B for secondary text, #FF453F as an accent and #015C7F for hover and pressed states. For a palette, the analogous pair #40FED4 and #406AFE stays calm, while #FE7540 is the loudest partner.

What is #40c9fe in CMYK for printing?

cmyk(75%, 21%, 0%, 0%). 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 #40c9fe warm or cool?

Cool — it scores 94 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #40FEED; nudged cooler, #3FB1FF.

Work with #40c9fe in the Color Lab