Skip to content

#878df4

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

RGB
135, 141, 244
HSL
237°, 83%, 74%
CMYK
45, 42, 0, 4
Luminance
0.3073

At a glance

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

Hex
#878df4
Hue
237°
blue
Saturation
83%
electric
Lightness
74%
light
Brightness
96%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3073
WCAG relative
Temperature
Cool
85/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.15:1
Closest name
Cornflower Blue
ΔE2000 8.5
Where it sits
Hue237° of 360°
Saturation83%
Lightness74%
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#878df4
RGBrgb(135, 141, 244)
HSLhsl(237, 83%, 74%)
CMYKcmyk(45%, 42%, 0%, 4%)
LABlab(62.3 23.8 -52.5)
LCHlch(62.3 57.6 294.4)
OKLCHoklch(0.684 0.150 279.1)
Decimal8883700
Display P3color(display-p3 0.529 0.553 0.957)

Copy-ready code

/* CSS */
color: #878df4;
background-color: #878df4;
/* Tailwind (arbitrary) */
class="text-[#878df4] bg-[#878df4]"
/* SCSS */
$brand: #878df4;
/* SwiftUI */
Color(red: 0.529, green: 0.553, blue: 0.957)
/* Android */
Color.parseColor("#878df4")
/* Flutter */
Color(0xFF878DF4)
/* Python / OpenCV (BGR) */
(244, 141, 135)

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

Accessibility — WCAG contrast

Aa
#878df4 on white: 2.94:1
AA ✗ fail · AA-large · AAA
Aa
#878df4 on black: 7.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #669BF8
deuteranopia · #5E93F2
tritanopia · #62A2B5

Color scale — 50 to 950

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

#F2F3FC
#E6E7FA
#C6C8F6
#878df4
#656DF1
#313CEC
#1520E0
#111ABB
#0E1595
#0E146C
#090C44
Base = 300Lightest = 50 · #F2F3FCDarkest = 950 · #090C44
:root {
  --brand-50: #F2F3FC;
  --brand-100: #E6E7FA;
  --brand-200: #C6C8F6;
  --brand-300: #878df4;
  --brand-400: #656DF1;
  --brand-500: #313CEC;
  --brand-600: #1520E0;
  --brand-700: #111ABB;
  --brand-800: #0E1595;
  --brand-900: #0E146C;
  --brand-950: #090C44;
  --brand: #878df4;
  --brand-ink: #000000;
}

Colors that work with #878df4

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#C0890C
Second voice, not a rival
Dark variant#0B1175
Hover, pressed, headers
Light variant#E8E9FD
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 #878df4

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#F4EE87
Analogous left#87C3F4
Analogous right#B787F4
Split-complement 1#F4B787
Split-complement 2#C3F487
Triadic 1#F4878D
Triadic 2#8DF487
Tetradic#F487C3

RGB percentages

Red52.9%
Green55.3%
Blue95.7%

CMYK percentages

Cyan44.7%
Magenta42.2%
Yellow0.0%
Key (black)4.3%

Color previews

#878df4 text on a black background

contrast 7.15:1

Card sample

#878df4 text on a white background

contrast 2.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #878df4;
Background color
Panel with #878df4 background
background-color: #878df4;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(135, 141, 244, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 141, 244, 0.45);
Border & gradient
Gradient panel
border: 3px solid #878df4;
background: linear-gradient(135deg, #878df4, #CA87F4);

Monochromatic scale

Palettes built from #878df4

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.

#878df4 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.

#878df4, answered

What color is #878df4?

#878df4 is a light electric blue, closest to Cornflower Blue (ΔE2000 8.5). It sits at 237° on the hue wheel with 83% saturation and 74% lightness, which reads as cool.

What is the RGB value of #878df4?

rgb(135, 141, 244) — 135 red, 141 green and 244 blue out of 255, or 52.9% / 55.3% / 95.7% by channel.

Is #878df4 a light or a dark color?

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

Should I use black or white text on #878df4?

Black. It scores 7.15:1 against #878df4, versus 2.94:1 for white — AAA at any size.

What is the complementary color of #878df4?

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

What colors go well with #878df4?

For interface work: #F4F5FA as the surface, #C0C2ED for borders, #4B4F9B for secondary text, #C0890C as an accent and #0B1175 for hover and pressed states. For a palette, the analogous pair #87C3F4 and #B787F4 stays calm, while #F4EE87 is the loudest partner.

What is #878df4 in CMYK for printing?

cmyk(45%, 42%, 0%, 4%). 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 #878df4 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 #A987F4; nudged cooler, #86AAF5.

Work with #878df4 in the Color Lab