Skip to content

#40ade7

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

RGB
64, 173, 231
HSL
201°, 78%, 58%
CMYK
72, 25, 0, 9
Luminance
0.3675

At a glance

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

Hex
#40ade7
Hue
201°
blue
Saturation
78%
electric
Lightness
58%
balanced
Brightness
91%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3675
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.35:1
Closest name
Deep Sky Blue
ΔE2000 5.4
Where it sits
Hue201° of 360°
Saturation78%
Lightness58%
Temperature
Warm ← → Cool96% 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#40ade7
RGBrgb(64, 173, 231)
HSLhsl(201, 78%, 58%)
CMYKcmyk(72%, 25%, 0%, 9%)
LABlab(67.1 -12.2 -38.0)
LCHlch(67.1 39.9 252.2)
OKLCHoklch(0.711 0.129 236.2)
Decimal4238823
Display P3color(display-p3 0.251 0.678 0.906)

Copy-ready code

/* CSS */
color: #40ade7;
background-color: #40ade7;
/* Tailwind (arbitrary) */
class="text-[#40ade7] bg-[#40ade7]"
/* SCSS */
$brand: #40ade7;
/* SwiftUI */
Color(red: 0.251, green: 0.678, blue: 0.906)
/* Android */
Color.parseColor("#40ade7")
/* Flutter */
Color(0xFF40ADE7)
/* Python / OpenCV (BGR) */
(231, 173, 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 #40ade7 · 8.35:1
Use #000000AAA at every size.
Aa
White text · 2.52:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.35:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #40ade7 as text scores 2.52:1 on white and 8.35:1 on black.

Accessibility — WCAG contrast

Aa
#40ade7 on white: 2.52:1
AA ✗ fail · AA-large · AAA
Aa
#40ade7 on black: 8.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #91ACEA
deuteranopia · #7A9CE6
tritanopia · #00BCC1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #40ade7 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.

#F3F9FC
#E6F3F9
#C7E5F5
#9BD4F2
#69BFEC
#40ade7
#1B98DA
#177EB5
#126591
#114B69
#0B2F42
Base = 500Lightest = 50 · #F3F9FCDarkest = 950 · #0B2F42
:root {
  --brand-50: #F3F9FC;
  --brand-100: #E6F3F9;
  --brand-200: #C7E5F5;
  --brand-300: #9BD4F2;
  --brand-400: #69BFEC;
  --brand-500: #40ade7;
  --brand-600: #1B98DA;
  --brand-700: #177EB5;
  --brand-800: #126591;
  --brand-900: #114B69;
  --brand-950: #0B2F42;
  --brand: #40ade7;
  --brand-ink: #000000;
}

Colors that work with #40ade7

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#F4F8FA
Tinted page background
Border#C0DDED
Hairlines and dividers
Muted text#4B7F9B
Captions on the surface
Accent#EB4C3B
Second voice, not a rival
Dark variant#0E4F71
Hover, pressed, headers
Light variant#E8F5FC
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 #40ade7

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
  • 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#E77A40
Analogous left#40E7CD
Analogous right#4059E7
Split-complement 1#E74059
Split-complement 2#E7CD40
Triadic 1#E740AD
Triadic 2#ADE740
Tetradic#CD40E7

RGB percentages

Red25.1%
Green67.8%
Blue90.6%

CMYK percentages

Cyan72.3%
Magenta25.1%
Yellow0.0%
Key (black)9.4%

Color previews

#40ade7 text on a black background

contrast 8.35:1

Card sample

#40ade7 text on a white background

contrast 2.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 173, 231, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 173, 231, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40ade7;
background: linear-gradient(135deg, #40ade7, #4240E7);

Monochromatic scale

Palettes built from #40ade7

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.

#40ade7 in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#40ade7, answered

What color is #40ade7?

#40ade7 is a balanced electric blue, closest to Deep Sky Blue (ΔE2000 5.4). It sits at 201° on the hue wheel with 78% saturation and 58% lightness, which reads as cool.

What is the RGB value of #40ade7?

rgb(64, 173, 231) — 64 red, 173 green and 231 blue out of 255, or 25.1% / 67.8% / 90.6% by channel.

Is #40ade7 a light or a dark color?

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

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

Black. It scores 8.35:1 against #40ade7, versus 2.52:1 for white — AAA at any size.

What is the complementary color of #40ade7?

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

What colors go well with #40ade7?

For interface work: #F4F8FA as the surface, #C0DDED for borders, #4B7F9B for secondary text, #EB4C3B as an accent and #0E4F71 for hover and pressed states. For a palette, the analogous pair #40E7CD and #4059E7 stays calm, while #E77A40 is the loudest partner.

What is #40ade7 in CMYK for printing?

cmyk(72%, 25%, 0%, 9%). 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 #40ade7 warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #40E7E4; nudged cooler, #2791E7.

Work with #40ade7 in the Color Lab