Skip to content

#0877fd

a balanced, electric blue · cool · closest name: Royal Blue

RGB
8, 119, 253
HSL
213°, 98%, 51%
CMYK
97, 53, 0, 1
Luminance
0.2034

At a glance

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

Hex
#0877fd
Hue
213°
blue
Saturation
98%
electric
Lightness
51%
balanced
Brightness
99%
HSV value
Perceived
49%
weighted brightness
Luminance
0.2034
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.07:1
Closest name
Royal Blue
ΔE2000 6.6
Where it sits
Hue213° of 360°
Saturation98%
Lightness51%
Temperature
Warm ← → Cool98% 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#0877fd
RGBrgb(8, 119, 253)
HSLhsl(213, 98%, 51%)
CMYKcmyk(97%, 53%, 0%, 1%)
LABlab(52.2 23.8 -73.9)
LCHlch(52.2 77.6 287.9)
OKLCHoklch(0.596 0.218 258.1)
Decimal555005
Display P3color(display-p3 0.031 0.467 0.992)

Copy-ready code

/* CSS */
color: #0877fd;
background-color: #0877fd;
/* Tailwind (arbitrary) */
class="text-[#0877fd] bg-[#0877fd]"
/* SCSS */
$brand: #0877fd;
/* SwiftUI */
Color(red: 0.031, green: 0.467, blue: 0.992)
/* Android */
Color.parseColor("#0877fd")
/* Flutter */
Color(0xFF0877FD)
/* Python / OpenCV (BGR) */
(253, 119, 8)

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 #0877fd · 5.07:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.14:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.07:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #0877fd as text scores 4.14:1 on white and 5.07:1 on black.

Accessibility — WCAG contrast

Aa
#0877fd on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#0877fd on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0087FF
deuteranopia · #0073FA
tritanopia · #0099AF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #0877fd is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F1F7FE
#E3EFFC
#C1DBFB
#90C2FE
#58A3FE
#2084FD
#0877fd
#025DCA
#014AA2
#063875
#042349
Base = 600Lightest = 50 · #F1F7FEDarkest = 950 · #042349
:root {
  --brand-50: #F1F7FE;
  --brand-100: #E3EFFC;
  --brand-200: #C1DBFB;
  --brand-300: #90C2FE;
  --brand-400: #58A3FE;
  --brand-500: #2084FD;
  --brand-600: #0877fd;
  --brand-700: #025DCA;
  --brand-800: #014AA2;
  --brand-900: #063875;
  --brand-950: #042349;
  --brand: #0877fd;
  --brand-ink: #000000;
}

Colors that work with #0877fd

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#F4F7FA
Tinted page background
Border#C0D4ED
Hairlines and dividers
Muted text#4B6F9B
Captions on the surface
Accent#FF5006
Second voice, not a rival
Dark variant#013A7E
Hover, pressed, headers
Light variant#E6F1FF
Selected rows, tints
Dark surface#141B24
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 #0877fd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#FD8E08
Analogous left#08F2FD
Analogous right#1408FD
Split-complement 1#FD1408
Split-complement 2#F2FD08
Triadic 1#FD0877
Triadic 2#77FD08
Tetradic#FD08F2

RGB percentages

Red3.1%
Green46.7%
Blue99.2%

CMYK percentages

Cyan96.8%
Magenta53.0%
Yellow0.0%
Key (black)0.8%

Color previews

#0877fd text on a black background

contrast 5.07:1

Card sample

#0877fd text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0877fd;
Background color
Panel with #0877fd background
background-color: #0877fd;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0877fd

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.

#0877fd 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#0877fd, answered

What color is #0877fd?

#0877fd is a balanced electric blue, closest to Royal Blue (ΔE2000 6.6). It sits at 213° on the hue wheel with 98% saturation and 51% lightness, which reads as cool.

What is the RGB value of #0877fd?

rgb(8, 119, 253) — 8 red, 119 green and 253 blue out of 255, or 3.1% / 46.7% / 99.2% by channel.

Is #0877fd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2034 and perceived brightness is 49%, so black text on it reaches 5.07:1.

Should I use black or white text on #0877fd?

Black. It scores 5.07:1 against #0877fd, versus 4.14:1 for white — AA at any size.

What is the complementary color of #0877fd?

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

What colors go well with #0877fd?

For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B6F9B for secondary text, #FF5006 as an accent and #013A7E for hover and pressed states. For a palette, the analogous pair #08F2FD and #1408FD stays calm, while #FD8E08 is the loudest partner.

What is #0877fd in CMYK for printing?

cmyk(97%, 53%, 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 #0877fd warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #081DFD; nudged cooler, #006DEC.

Work with #0877fd in the Color Lab