Skip to content

#8ba2fd

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

RGB
139, 162, 253
HSL
228°, 97%, 77%
CMYK
45, 36, 0, 1
Luminance
0.3842

At a glance

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

Hex
#8ba2fd
Hue
228°
blue
Saturation
97%
electric
Lightness
77%
light
Brightness
99%
HSV value
Perceived
66%
weighted brightness
Luminance
0.3842
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.68:1
Closest name
Cornflower Blue
ΔE2000 7
Where it sits
Hue228° of 360°
Saturation97%
Lightness77%
Temperature
Warm ← → Cool90% 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#8ba2fd
RGBrgb(139, 162, 253)
HSLhsl(228, 97%, 77%)
CMYKcmyk(45%, 36%, 0%, 1%)
LABlab(68.3 15.2 -47.8)
LCHlch(68.3 50.2 287.6)
OKLCHoklch(0.732 0.135 272.0)
Decimal9151229
Display P3color(display-p3 0.545 0.635 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8ba2fd on white: 2.42:1
AA ✗ fail · AA-large · AAA
Aa
#8ba2fd on black: 8.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #81ACFF
deuteranopia · #76A2FB
tritanopia · #61B5C4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8ba2fd 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
#C1CDFB
#8ba2fd
#5A7AFC
#224EFB
#0434F1
#032BC9
#0323A0
#071D74
#041248
Base = 300Lightest = 50 · #F1F4FDDarkest = 950 · #041248
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E9FC;
  --brand-200: #C1CDFB;
  --brand-300: #8ba2fd;
  --brand-400: #5A7AFC;
  --brand-500: #224EFB;
  --brand-600: #0434F1;
  --brand-700: #032BC9;
  --brand-800: #0323A0;
  --brand-900: #071D74;
  --brand-950: #041248;
  --brand: #8ba2fd;
  --brand-ink: #000000;
}

Colors that work with #8ba2fd

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#C0C9ED
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#CC7100
Second voice, not a rival
Dark variant#021B7D
Hover, pressed, headers
Light variant#E6EBFF
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 #8ba2fd

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#FDE68B
Analogous left#8BDBFD
Analogous right#AD8BFD
Split-complement 1#FDAD8B
Split-complement 2#DBFD8B
Triadic 1#FD8BA2
Triadic 2#A2FD8B
Tetradic#FD8BDB

RGB percentages

Red54.5%
Green63.5%
Blue99.2%

CMYK percentages

Cyan45.1%
Magenta36.0%
Yellow0.0%
Key (black)0.8%

Color previews

#8ba2fd text on a black background

contrast 8.68:1

Card sample

#8ba2fd text on a white background

contrast 2.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8ba2fd

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.

#8ba2fd 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.

#8ba2fd, answered

What color is #8ba2fd?

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

What is the RGB value of #8ba2fd?

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

Is #8ba2fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3842 and perceived brightness is 66%, so black text on it reaches 8.68:1.

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

Black. It scores 8.68:1 against #8ba2fd, versus 2.42:1 for white — AAA at any size.

What is the complementary color of #8ba2fd?

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

What colors go well with #8ba2fd?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #CC7100 as an accent and #021B7D for hover and pressed states. For a palette, the analogous pair #8BDBFD and #AD8BFD stays calm, while #FDE68B is the loudest partner.

What is #8ba2fd in CMYK for printing?

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

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

Work with #8ba2fd in the Color Lab