Skip to content

#0f87cd

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

RGB
15, 135, 205
HSL
202°, 86%, 43%
CMYK
93, 34, 0, 20
Luminance
0.2184

At a glance

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

Hex
#0f87cd
Hue
202°
blue
Saturation
86%
electric
Lightness
43%
dark
Brightness
80%
HSV value
Perceived
49%
weighted brightness
Luminance
0.2184
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.37:1
Closest name
Steel Blue
ΔE2000 4.2
Where it sits
Hue202° of 360°
Saturation86%
Lightness43%
Temperature
Warm ← → Cool97% 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#0f87cd
RGBrgb(15, 135, 205)
HSLhsl(202, 86%, 43%)
CMYKcmyk(93%, 34%, 0%, 20%)
LABlab(53.9 -4.3 -44.4)
LCHlch(53.9 44.6 264.5)
OKLCHoklch(0.599 0.142 243.2)
Decimal1017805
Display P3color(display-p3 0.059 0.529 0.804)

Copy-ready code

/* CSS */
color: #0f87cd;
background-color: #0f87cd;
/* Tailwind (arbitrary) */
class="text-[#0f87cd] bg-[#0f87cd]"
/* SCSS */
$brand: #0f87cd;
/* SwiftUI */
Color(red: 0.059, green: 0.529, blue: 0.804)
/* Android */
Color.parseColor("#0f87cd")
/* Flutter */
Color(0xFF0F87CD)
/* Python / OpenCV (BGR) */
(205, 135, 15)

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

Accessibility — WCAG contrast

Aa
#0f87cd on white: 3.91:1
AA ✗ fail · AA-large · AAA
Aa
#0f87cd on black: 5.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6589D0
deuteranopia · #4B7ACC
tritanopia · #0098A0

Color scale — 50 to 950

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

#F2F9FD
#E5F2FA
#C5E5F7
#96D4F7
#62BEF4
#2EA8F0
#1196E4
#0f87cd
#0B6498
#0D4A6E
#082E45
Base = 700Lightest = 50 · #F2F9FDDarkest = 950 · #082E45
:root {
  --brand-50: #F2F9FD;
  --brand-100: #E5F2FA;
  --brand-200: #C5E5F7;
  --brand-300: #96D4F7;
  --brand-400: #62BEF4;
  --brand-500: #2EA8F0;
  --brand-600: #1196E4;
  --brand-700: #0f87cd;
  --brand-800: #0B6498;
  --brand-900: #0D4A6E;
  --brand-950: #082E45;
  --brand: #0f87cd;
  --brand-ink: #000000;
}

Colors that work with #0f87cd

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#F4F8FA
Tinted page background
Border#C0DCED
Hairlines and dividers
Muted text#4B7D9B
Captions on the surface
Accent#D1220B
Second voice, not a rival
Dark variant#094E77
Hover, pressed, headers
Light variant#E7F5FD
Selected rows, tints
Dark surface#141E24
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 #0f87cd

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#CD550F
Analogous left#0FCDB4
Analogous right#0F28CD
Split-complement 1#CD0F28
Split-complement 2#CDB40F
Triadic 1#CD0F87
Triadic 2#87CD0F
Tetradic#B40FCD

RGB percentages

Red5.9%
Green52.9%
Blue80.4%

CMYK percentages

Cyan92.7%
Magenta34.1%
Yellow0.0%
Key (black)19.6%

Color previews

#0f87cd text on a black background

contrast 5.37:1

Card sample

#0f87cd text on a white background

contrast 3.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0f87cd;
Background color
Panel with #0f87cd background
background-color: #0f87cd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 135, 205, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 135, 205, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f87cd;
background: linear-gradient(135deg, #0f87cd, #160FCD);

Monochromatic scale

Palettes built from #0f87cd

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.

#0f87cd 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.

#0f87cd, answered

What color is #0f87cd?

#0f87cd is a dark electric blue, closest to Steel Blue (ΔE2000 4.2). It sits at 202° on the hue wheel with 86% saturation and 43% lightness, which reads as cool.

What is the RGB value of #0f87cd?

rgb(15, 135, 205) — 15 red, 135 green and 205 blue out of 255, or 5.9% / 52.9% / 80.4% by channel.

Is #0f87cd a light or a dark color?

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

Should I use black or white text on #0f87cd?

Black. It scores 5.37:1 against #0f87cd, versus 3.91:1 for white — AA at any size.

What is the complementary color of #0f87cd?

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

What colors go well with #0f87cd?

For interface work: #F4F8FA as the surface, #C0DCED for borders, #4B7D9B for secondary text, #D1220B as an accent and #094E77 for hover and pressed states. For a palette, the analogous pair #0FCDB4 and #0F28CD stays calm, while #CD550F is the loudest partner.

What is #0f87cd in CMYK for printing?

cmyk(93%, 34%, 0%, 20%). 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 #0f87cd warm or cool?

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

Work with #0f87cd in the Color Lab