Skip to content

#40abfd

a balanced, electric blue · cool · closest name: Dodger Blue

RGB
64, 171, 253
HSL
206°, 98%, 62%
CMYK
75, 32, 0, 1
Luminance
0.3731

At a glance

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

Hex
#40abfd
Hue
206°
blue
Saturation
98%
electric
Lightness
62%
balanced
Brightness
99%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3731
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.46:1
Closest name
Dodger Blue
ΔE2000 8.6
Where it sits
Hue206° of 360°
Saturation98%
Lightness62%
Temperature
Warm ← → Cool98% 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#40abfd
RGBrgb(64, 171, 253)
HSLhsl(206, 98%, 62%)
CMYKcmyk(75%, 32%, 0%, 1%)
LABlab(67.5 -3.6 -49.3)
LCHlch(67.5 49.5 265.8)
OKLCHoklch(0.717 0.154 245.7)
Decimal4238333
Display P3color(display-p3 0.251 0.671 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#40abfd on white: 2.48:1
AA ✗ fail · AA-large · AAA
Aa
#40abfd on black: 8.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #85AEFF
deuteranopia · #6A9CFB
tritanopia · #00BFC8

Color scale — 50 to 950

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

#F1F8FD
#E3F1FC
#C1E2FB
#90CEFE
#40abfd
#219DFD
#038AF2
#0273CA
#025CA1
#064574
#042B49
Base = 400Lightest = 50 · #F1F8FDDarkest = 950 · #042B49
:root {
  --brand-50: #F1F8FD;
  --brand-100: #E3F1FC;
  --brand-200: #C1E2FB;
  --brand-300: #90CEFE;
  --brand-400: #40abfd;
  --brand-500: #219DFD;
  --brand-600: #038AF2;
  --brand-700: #0273CA;
  --brand-800: #025CA1;
  --brand-900: #064574;
  --brand-950: #042B49;
  --brand: #40abfd;
  --brand-ink: #000000;
}

Colors that work with #40abfd

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#C0D9ED
Hairlines and dividers
Muted text#4B789B
Captions on the surface
Accent#CC2600
Second voice, not a rival
Dark variant#01487E
Hover, pressed, headers
Light variant#E6F4FF
Selected rows, tints
Dark surface#141D24
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 #40abfd

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#FD9240
Analogous left#40FDF0
Analogous right#404DFD
Split-complement 1#FD404D
Split-complement 2#FDF040
Triadic 1#FD40AB
Triadic 2#ABFD40
Tetradic#F040FD

RGB percentages

Red25.1%
Green67.1%
Blue99.2%

CMYK percentages

Cyan74.7%
Magenta32.4%
Yellow0.0%
Key (black)0.8%

Color previews

#40abfd text on a black background

contrast 8.46:1

Card sample

#40abfd text on a white background

contrast 2.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(64, 171, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 171, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #40abfd;
background: linear-gradient(135deg, #40abfd, #5340FD);

Monochromatic scale

Palettes built from #40abfd

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.

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

#40abfd, answered

What color is #40abfd?

#40abfd is a balanced electric blue, closest to Dodger Blue (ΔE2000 8.6). It sits at 206° on the hue wheel with 98% saturation and 62% lightness, which reads as cool.

What is the RGB value of #40abfd?

rgb(64, 171, 253) — 64 red, 171 green and 253 blue out of 255, or 25.1% / 67.1% / 99.2% by channel.

Is #40abfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3731 and perceived brightness is 63%, so black text on it reaches 8.46:1.

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

Black. It scores 8.46:1 against #40abfd, versus 2.48:1 for white — AAA at any size.

What is the complementary color of #40abfd?

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

What colors go well with #40abfd?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B789B for secondary text, #CC2600 as an accent and #01487E for hover and pressed states. For a palette, the analogous pair #40FDF0 and #404DFD stays calm, while #FD9240 is the loudest partner.

What is #40abfd in CMYK for printing?

cmyk(75%, 32%, 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 #40abfd warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #4066FD; nudged cooler, #2596FF.

Work with #40abfd in the Color Lab