Skip to content

#0874af

a dark, electric blue · cool · closest name: Steel Blue

RGB
8, 116, 175
HSL
201°, 91%, 36%
CMYK
95, 34, 0, 31
Luminance
0.1564

At a glance

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

Hex
#0874af
Hue
201°
blue
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1564
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.09:1
Closest name
Steel Blue
ΔE2000 6.5
Where it sits
Hue201° of 360°
Saturation91%
Lightness36%
Temperature
Warm ← → Cool96% 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#0874af
RGBrgb(8, 116, 175)
HSLhsl(201, 91%, 36%)
CMYKcmyk(95%, 34%, 0%, 31%)
LABlab(46.5 -4.8 -38.8)
LCHlch(46.5 39.1 262.9)
OKLCHoklch(0.536 0.125 242.1)
Decimal554159
Display P3color(display-p3 0.031 0.455 0.686)

Copy-ready code

/* CSS */
color: #0874af;
background-color: #0874af;
/* Tailwind (arbitrary) */
class="text-[#0874af] bg-[#0874af]"
/* SCSS */
$brand: #0874af;
/* SwiftUI */
Color(red: 0.031, green: 0.455, blue: 0.686)
/* Android */
Color.parseColor("#0874af")
/* Flutter */
Color(0xFF0874AF)
/* Python / OpenCV (BGR) */
(175, 116, 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#ffffff on #0874af · 5.09:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.09:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.13:1
AA fail · AA large pass · AAA fail
Reading the other direction: #0874af as text scores 5.09:1 on white and 4.13:1 on black.

Accessibility — WCAG contrast

Aa
#0874af on white: 5.09:1
AA ✓ pass · AA-large · AAA
Aa
#0874af on black: 4.13:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5776B2
deuteranopia · #4168AE
tritanopia · #008389

Color scale — 50 to 950

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

#F2F9FD
#E4F3FB
#C3E6F9
#94D6FA
#5EC1F8
#28ADF5
#0B9BEA
#0981C3
#0874af
#0A4C71
#063046
Base = 800Lightest = 50 · #F2F9FDDarkest = 950 · #063046
:root {
  --brand-50: #F2F9FD;
  --brand-100: #E4F3FB;
  --brand-200: #C3E6F9;
  --brand-300: #94D6FA;
  --brand-400: #5EC1F8;
  --brand-500: #28ADF5;
  --brand-600: #0B9BEA;
  --brand-700: #0981C3;
  --brand-800: #0874af;
  --brand-900: #0A4C71;
  --brand-950: #063046;
  --brand: #0874af;
  --brand-ink: #ffffff;
}

Colors that work with #0874af

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F8FA
Tinted page background
Border#C0DDED
Hairlines and dividers
Muted text#4B7F9B
Captions on the surface
Accent#B31604
Second voice, not a rival
Dark variant#06517A
Hover, pressed, headers
Light variant#E7F6FE
Selected rows, tints
Dark surface#141F24
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 #0874af

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#AF4308
Analogous left#08AF97
Analogous right#0820AF
Split-complement 1#AF0820
Split-complement 2#AF9708
Triadic 1#AF0874
Triadic 2#74AF08
Tetradic#9708AF

RGB percentages

Red3.1%
Green45.5%
Blue68.6%

CMYK percentages

Cyan95.4%
Magenta33.7%
Yellow0.0%
Key (black)31.4%

Color previews

#0874af text on a black background

contrast 4.13:1

Card sample

#0874af text on a white background

contrast 5.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0874af;
Background color
Panel with #0874af background
background-color: #0874af;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 116, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 116, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0874af;
background: linear-gradient(135deg, #0874af, #0B08AF);

Monochromatic scale

Palettes built from #0874af

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.

#0874af 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.

#0874af, answered

What color is #0874af?

#0874af is a dark electric blue, closest to Steel Blue (ΔE2000 6.5). It sits at 201° on the hue wheel with 91% saturation and 36% lightness, which reads as cool.

What is the RGB value of #0874af?

rgb(8, 116, 175) — 8 red, 116 green and 175 blue out of 255, or 3.1% / 45.5% / 68.6% by channel.

Is #0874af a light or a dark color?

It is a dark color. Relative luminance is 0.1564 and perceived brightness is 42%, so white text on it reaches 5.09:1.

Should I use black or white text on #0874af?

White. It scores 5.09:1 against #0874af, versus 4.13:1 for black — AA at any size.

What is the complementary color of #0874af?

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

What colors go well with #0874af?

For interface work: #F4F8FA as the surface, #C0DDED for borders, #4B7F9B for secondary text, #B31604 as an accent and #06517A for hover and pressed states. For a palette, the analogous pair #08AF97 and #0820AF stays calm, while #AF4308 is the loudest partner.

What is #0874af in CMYK for printing?

cmyk(95%, 34%, 0%, 31%). 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 #0874af warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #08AFAD; nudged cooler, #055798.

Work with #0874af in the Color Lab