Skip to content

#868dfd

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

RGB
134, 141, 253
HSL
237°, 97%, 76%
CMYK
47, 44, 0, 1
Luminance
0.3121

At a glance

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

Hex
#868dfd
Hue
237°
blue
Saturation
97%
electric
Lightness
76%
light
Brightness
99%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3121
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.24:1
Closest name
Cornflower Blue
ΔE2000 8.3
Where it sits
Hue237° of 360°
Saturation97%
Lightness76%
Temperature
Warm ← → Cool85% 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#868dfd
RGBrgb(134, 141, 253)
HSLhsl(237, 97%, 76%)
CMYKcmyk(47%, 44%, 0%, 1%)
LABlab(62.7 26.2 -56.8)
LCHlch(62.7 62.5 294.8)
OKLCHoklch(0.688 0.163 278.5)
Decimal8818173
Display P3color(display-p3 0.525 0.553 0.992)

Copy-ready code

/* CSS */
color: #868dfd;
background-color: #868dfd;
/* Tailwind (arbitrary) */
class="text-[#868dfd] bg-[#868dfd]"
/* SCSS */
$brand: #868dfd;
/* SwiftUI */
Color(red: 0.525, green: 0.553, blue: 0.992)
/* Android */
Color.parseColor("#868dfd")
/* Flutter */
Color(0xFF868DFD)
/* Python / OpenCV (BGR) */
(253, 141, 134)

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

Accessibility — WCAG contrast

Aa
#868dfd on white: 2.90:1
AA ✗ fail · AA-large · AAA
Aa
#868dfd on black: 7.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5F9CFF
deuteranopia · #5693FA
tritanopia · #5AA5B9

Color scale — 50 to 950

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

#F1F2FD
#E4E5FC
#C1C4FB
#868dfd
#5963FC
#222FFB
#0412F1
#030FC9
#030CA1
#070D74
#040848
Base = 300Lightest = 50 · #F1F2FDDarkest = 950 · #040848
:root {
  --brand-50: #F1F2FD;
  --brand-100: #E4E5FC;
  --brand-200: #C1C4FB;
  --brand-300: #868dfd;
  --brand-400: #5963FC;
  --brand-500: #222FFB;
  --brand-600: #0412F1;
  --brand-700: #030FC9;
  --brand-800: #030CA1;
  --brand-900: #070D74;
  --brand-950: #040848;
  --brand: #868dfd;
  --brand-ink: #000000;
}

Colors that work with #868dfd

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#C0C2ED
Hairlines and dividers
Muted text#4B4F9B
Captions on the surface
Accent#CC8D00
Second voice, not a rival
Dark variant#02097D
Hover, pressed, headers
Light variant#E6E7FF
Selected rows, tints
Dark surface#141524
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 #868dfd

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#FDF686
Analogous left#86C8FD
Analogous right#BB86FD
Split-complement 1#FDBB86
Split-complement 2#C8FD86
Triadic 1#FD868D
Triadic 2#8DFD86
Tetradic#FD86C8

RGB percentages

Red52.5%
Green55.3%
Blue99.2%

CMYK percentages

Cyan47.0%
Magenta44.3%
Yellow0.0%
Key (black)0.8%

Color previews

#868dfd text on a black background

contrast 7.24:1

Card sample

#868dfd text on a white background

contrast 2.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #868dfd;
Background color
Panel with #868dfd background
background-color: #868dfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(134, 141, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(134, 141, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #868dfd;
background: linear-gradient(135deg, #868dfd, #CE86FD);

Monochromatic scale

Palettes built from #868dfd

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.

#868dfd 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.

#868dfd, answered

What color is #868dfd?

#868dfd is a light electric blue, closest to Cornflower Blue (ΔE2000 8.3). It sits at 237° on the hue wheel with 97% saturation and 76% lightness, which reads as cool.

What is the RGB value of #868dfd?

rgb(134, 141, 253) — 134 red, 141 green and 253 blue out of 255, or 52.5% / 55.3% / 99.2% by channel.

Is #868dfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3121 and perceived brightness is 61%, so black text on it reaches 7.24:1.

Should I use black or white text on #868dfd?

Black. It scores 7.24:1 against #868dfd, versus 2.90:1 for white — AAA at any size.

What is the complementary color of #868dfd?

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

What colors go well with #868dfd?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4F9B for secondary text, #CC8D00 as an accent and #02097D for hover and pressed states. For a palette, the analogous pair #86C8FD and #BB86FD stays calm, while #FDF686 is the loudest partner.

What is #868dfd in CMYK for printing?

cmyk(47%, 44%, 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 #868dfd warm or cool?

Cool — it scores 85 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB86FD; nudged cooler, #85ABFE.

Work with #868dfd in the Color Lab