Skip to content

#8ba5fd

a light, electric blue · cool · closest name: Cornflower Blue

RGB
139, 165, 253
HSL
226°, 97%, 77%
CMYK
45, 35, 0, 1
Luminance
0.3949

At a glance

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

Hex
#8ba5fd
Hue
226°
blue
Saturation
97%
electric
Lightness
77%
light
Brightness
99%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3949
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.90:1
Closest name
Cornflower Blue
ΔE2000 7.1
Where it sits
Hue226° of 360°
Saturation97%
Lightness77%
Temperature
Warm ← → Cool91% 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#8ba5fd
RGBrgb(139, 165, 253)
HSLhsl(226, 97%, 77%)
CMYKcmyk(45%, 35%, 0%, 1%)
LABlab(69.1 13.5 -46.6)
LCHlch(69.1 48.5 286.1)
OKLCHoklch(0.738 0.131 270.4)
Decimal9151997
Display P3color(display-p3 0.545 0.647 0.992)

Copy-ready code

/* CSS */
color: #8ba5fd;
background-color: #8ba5fd;
/* Tailwind (arbitrary) */
class="text-[#8ba5fd] bg-[#8ba5fd]"
/* SCSS */
$brand: #8ba5fd;
/* SwiftUI */
Color(red: 0.545, green: 0.647, blue: 0.992)
/* Android */
Color.parseColor("#8ba5fd")
/* Flutter */
Color(0xFF8BA5FD)
/* Python / OpenCV (BGR) */
(253, 165, 139)

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

Accessibility — WCAG contrast

Aa
#8ba5fd on white: 2.36:1
AA ✗ fail · AA-large · AAA
Aa
#8ba5fd on black: 8.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #85AEFF
deuteranopia · #7AA4FB
tritanopia · #61B7C5

Color scale — 50 to 950

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

#F1F4FD
#E4E9FC
#C1CEFB
#8ba5fd
#5A7FFC
#2254FB
#043AF1
#0330C9
#0327A0
#072074
#041448
Base = 300Lightest = 50 · #F1F4FDDarkest = 950 · #041448
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E9FC;
  --brand-200: #C1CEFB;
  --brand-300: #8ba5fd;
  --brand-400: #5A7FFC;
  --brand-500: #2254FB;
  --brand-600: #043AF1;
  --brand-700: #0330C9;
  --brand-800: #0327A0;
  --brand-900: #072074;
  --brand-950: #041448;
  --brand: #8ba5fd;
  --brand-ink: #000000;
}

Colors that work with #8ba5fd

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#F4F6FA
Tinted page background
Border#C0CAED
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#CC6B00
Second voice, not a rival
Dark variant#021E7D
Hover, pressed, headers
Light variant#E6ECFF
Selected rows, tints
Dark surface#141724
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 #8ba5fd

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
  • Card and section backgrounds
  • 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
  • White text placed on it
  • 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#FDE38B
Analogous left#8BDEFD
Analogous right#AA8BFD
Split-complement 1#FDAA8B
Split-complement 2#DEFD8B
Triadic 1#FD8BA5
Triadic 2#A5FD8B
Tetradic#FD8BDE

RGB percentages

Red54.5%
Green64.7%
Blue99.2%

CMYK percentages

Cyan45.1%
Magenta34.8%
Yellow0.0%
Key (black)0.8%

Color previews

#8ba5fd text on a black background

contrast 8.90:1

Card sample

#8ba5fd text on a white background

contrast 2.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8ba5fd;
Background color
Panel with #8ba5fd background
background-color: #8ba5fd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(139, 165, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(139, 165, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8ba5fd;
background: linear-gradient(135deg, #8ba5fd, #BD8BFD);

Monochromatic scale

Palettes built from #8ba5fd

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.

#8ba5fd 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#8ba5fd, answered

What color is #8ba5fd?

#8ba5fd is a light electric blue, closest to Cornflower Blue (ΔE2000 7.1). It sits at 226° on the hue wheel with 97% saturation and 77% lightness, which reads as cool.

What is the RGB value of #8ba5fd?

rgb(139, 165, 253) — 139 red, 165 green and 253 blue out of 255, or 54.5% / 64.7% / 99.2% by channel.

Is #8ba5fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3949 and perceived brightness is 67%, so black text on it reaches 8.90:1.

Should I use black or white text on #8ba5fd?

Black. It scores 8.90:1 against #8ba5fd, versus 2.36:1 for white — AAA at any size.

What is the complementary color of #8ba5fd?

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

What colors go well with #8ba5fd?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5D9B for secondary text, #CC6B00 as an accent and #021E7D for hover and pressed states. For a palette, the analogous pair #8BDEFD and #AA8BFD stays calm, while #FDE38B is the loudest partner.

What is #8ba5fd in CMYK for printing?

cmyk(45%, 35%, 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 #8ba5fd warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9B8BFD; nudged cooler, #8AB6FE.

Work with #8ba5fd in the Color Lab