Skip to content

#8b98df

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

RGB
139, 152, 223
HSL
231°, 57%, 71%
CMYK
38, 32, 0, 13
Luminance
0.3327

At a glance

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

Hex
#8b98df
Hue
231°
blue
Saturation
57%
vivid
Lightness
71%
light
Brightness
87%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3327
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
7.65:1
Closest name
Cornflower Blue
ΔE2000 8.1
Where it sits
Hue231° of 360°
Saturation57%
Lightness71%
Temperature
Warm ← → Cool88% 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#8b98df
RGBrgb(139, 152, 223)
HSLhsl(231, 57%, 71%)
CMYKcmyk(38%, 32%, 0%, 13%)
LABlab(64.4 12.6 -37.5)
LCHlch(64.4 39.6 288.5)
OKLCHoklch(0.698 0.105 275.4)
Decimal9148639
Display P3color(display-p3 0.545 0.596 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#8b98df on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#8b98df on black: 7.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #81A0E2
deuteranopia · #7B99DD
tritanopia · #72A6B2

Color scale — 50 to 950

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

#F4F5FB
#E9EBF6
#CDD2EE
#A7B1E7
#8b98df
#4F63CF
#354AC0
#2C3EA0
#233280
#1D275D
#12183A
Base = 400Lightest = 50 · #F4F5FBDarkest = 950 · #12183A
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E9EBF6;
  --brand-200: #CDD2EE;
  --brand-300: #A7B1E7;
  --brand-400: #8b98df;
  --brand-500: #4F63CF;
  --brand-600: #354AC0;
  --brand-700: #2C3EA0;
  --brand-800: #233280;
  --brand-900: #1D275D;
  --brand-950: #12183A;
  --brand: #8b98df;
  --brand-ink: #000000;
}

Colors that work with #8b98df

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#F4F5FA
Tinted page background
Border#C0C7ED
Hairlines and dividers
Muted text#4B579B
Captions on the surface
Accent#A47228
Second voice, not a rival
Dark variant#1C2764
Hover, pressed, headers
Light variant#EBEDF9
Selected rows, tints
Dark surface#141624
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 #8b98df

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#DFD28B
Analogous left#8BC2DF
Analogous right#A88BDF
Split-complement 1#DFA88B
Split-complement 2#C2DF8B
Triadic 1#DF8B98
Triadic 2#98DF8B
Tetradic#DF8BC2

RGB percentages

Red54.5%
Green59.6%
Blue87.5%

CMYK percentages

Cyan37.7%
Magenta31.8%
Yellow0.0%
Key (black)12.5%

Color previews

#8b98df text on a black background

contrast 7.65:1

Card sample

#8b98df text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #8b98df

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.

#8b98df 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

Converts to four-color process without much drama. Proof it anyway.

#8b98df, answered

What color is #8b98df?

#8b98df is a light vivid blue, closest to Cornflower Blue (ΔE2000 8.1). It sits at 231° on the hue wheel with 57% saturation and 71% lightness, which reads as cool.

What is the RGB value of #8b98df?

rgb(139, 152, 223) — 139 red, 152 green and 223 blue out of 255, or 54.5% / 59.6% / 87.5% by channel.

Is #8b98df a light or a dark color?

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

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

Black. It scores 7.65:1 against #8b98df, versus 2.74:1 for white — AAA at any size.

What is the complementary color of #8b98df?

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

What colors go well with #8b98df?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B579B for secondary text, #A47228 as an accent and #1C2764 for hover and pressed states. For a palette, the analogous pair #8BC2DF and #A88BDF stays calm, while #DFD28B is the loudest partner.

What is #8b98df in CMYK for printing?

cmyk(38%, 32%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #8b98df warm or cool?

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

Work with #8b98df in the Color Lab