Skip to content

#8f9dfb

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

RGB
143, 157, 251
HSL
232°, 93%, 77%
CMYK
43, 38, 0, 2
Luminance
0.3692

At a glance

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

Hex
#8f9dfb
Hue
232°
blue
Saturation
93%
electric
Lightness
77%
light
Brightness
98%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3692
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.38:1
Closest name
Cornflower Blue
ΔE2000 7.9
Where it sits
Hue232° of 360°
Saturation93%
Lightness77%
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#8f9dfb
RGBrgb(143, 157, 251)
HSLhsl(232, 93%, 77%)
CMYKcmyk(43%, 38%, 0%, 2%)
LABlab(67.2 18.5 -48.5)
LCHlch(67.2 51.9 290.9)
OKLCHoklch(0.724 0.137 276.0)
Decimal9412091
Display P3color(display-p3 0.561 0.616 0.984)

Copy-ready code

/* CSS */
color: #8f9dfb;
background-color: #8f9dfb;
/* Tailwind (arbitrary) */
class="text-[#8f9dfb] bg-[#8f9dfb]"
/* SCSS */
$brand: #8f9dfb;
/* SwiftUI */
Color(red: 0.561, green: 0.616, blue: 0.984)
/* Android */
Color.parseColor("#8f9dfb")
/* Flutter */
Color(0xFF8F9DFB)
/* Python / OpenCV (BGR) */
(251, 157, 143)

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

Accessibility — WCAG contrast

Aa
#8f9dfb on white: 2.50:1
AA ✗ fail · AA-large · AAA
Aa
#8f9dfb on black: 8.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7BA8FF
deuteranopia · #73A0F9
tritanopia · #6BB0C0

Color scale — 50 to 950

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

#F2F3FD
#E4E7FB
#C2C9F9
#8f9dfb
#5D71F9
#2642F7
#0826EC
#0720C5
#06199E
#091672
#050E47
Base = 300Lightest = 50 · #F2F3FDDarkest = 950 · #050E47
:root {
  --brand-50: #F2F3FD;
  --brand-100: #E4E7FB;
  --brand-200: #C2C9F9;
  --brand-300: #8f9dfb;
  --brand-400: #5D71F9;
  --brand-500: #2642F7;
  --brand-600: #0826EC;
  --brand-700: #0720C5;
  --brand-800: #06199E;
  --brand-900: #091672;
  --brand-950: #050E47;
  --brand: #8f9dfb;
  --brand-ink: #000000;
}

Colors that work with #8f9dfb

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#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#C97F03
Second voice, not a rival
Dark variant#04147B
Hover, pressed, headers
Light variant#E6E9FE
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 #8f9dfb

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#FBED8F
Analogous left#8FD3FB
Analogous right#B78FFB
Split-complement 1#FBB78F
Split-complement 2#D3FB8F
Triadic 1#FB8F9D
Triadic 2#9DFB8F
Tetradic#FB8FD3

RGB percentages

Red56.1%
Green61.6%
Blue98.4%

CMYK percentages

Cyan43.0%
Magenta37.5%
Yellow0.0%
Key (black)1.6%

Color previews

#8f9dfb text on a black background

contrast 8.38:1

Card sample

#8f9dfb text on a white background

contrast 2.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(143, 157, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(143, 157, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8f9dfb;
background: linear-gradient(135deg, #8f9dfb, #C98FFB);

Monochromatic scale

Palettes built from #8f9dfb

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.

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

#8f9dfb, answered

What color is #8f9dfb?

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

What is the RGB value of #8f9dfb?

rgb(143, 157, 251) — 143 red, 157 green and 251 blue out of 255, or 56.1% / 61.6% / 98.4% by channel.

Is #8f9dfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.3692 and perceived brightness is 65%, so black text on it reaches 8.38:1.

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

Black. It scores 8.38:1 against #8f9dfb, versus 2.50:1 for white — AAA at any size.

What is the complementary color of #8f9dfb?

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

What colors go well with #8f9dfb?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #C97F03 as an accent and #04147B for hover and pressed states. For a palette, the analogous pair #8FD3FB and #B78FFB stays calm, while #FBED8F is the loudest partner.

What is #8f9dfb in CMYK for printing?

cmyk(43%, 38%, 0%, 2%). 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 #8f9dfb 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 #A98FFB; nudged cooler, #8EB4FC.

Work with #8f9dfb in the Color Lab