Skip to content

#0f7fd8

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

RGB
15, 127, 216
HSL
207°, 87%, 45%
CMYK
93, 41, 0, 15
Luminance
0.2024

At a glance

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

Hex
#0f7fd8
Hue
207°
blue
Saturation
87%
electric
Lightness
45%
balanced
Brightness
85%
HSV value
Perceived
48%
weighted brightness
Luminance
0.2024
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.05:1
Closest name
Steel Blue
ΔE2000 4.1
Where it sits
Hue207° of 360°
Saturation87%
Lightness45%
Temperature
Warm ← → Cool99% 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#0f7fd8
RGBrgb(15, 127, 216)
HSLhsl(207, 87%, 45%)
CMYKcmyk(93%, 41%, 0%, 15%)
LABlab(52.1 4.7 -53.4)
LCHlch(52.1 53.6 275.1)
OKLCHoklch(0.587 0.163 250.3)
Decimal1015768
Display P3color(display-p3 0.059 0.498 0.847)

Copy-ready code

/* CSS */
color: #0f7fd8;
background-color: #0f7fd8;
/* Tailwind (arbitrary) */
class="text-[#0f7fd8] bg-[#0f7fd8]"
/* SCSS */
$brand: #0f7fd8;
/* SwiftUI */
Color(red: 0.059, green: 0.498, blue: 0.847)
/* Android */
Color.parseColor("#0f7fd8")
/* Flutter */
Color(0xFF0F7FD8)
/* Python / OpenCV (BGR) */
(216, 127, 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 #0f7fd8 · 5.05:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.16:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.05:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #0f7fd8 as text scores 4.16:1 on white and 5.05:1 on black.

Accessibility — WCAG contrast

Aa
#0f7fd8 on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#0f7fd8 on black: 5.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5285DC
deuteranopia · #2E75D6
tritanopia · #0095A1

Color scale — 50 to 950

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

#F2F8FD
#E5F1FA
#C4E1F7
#96CCF8
#62B3F4
#2D9AF0
#0f7fd8
#0D70BF
#0B5A99
#0C436E
#082A45
Base = 600Lightest = 50 · #F2F8FDDarkest = 950 · #082A45
:root {
  --brand-50: #F2F8FD;
  --brand-100: #E5F1FA;
  --brand-200: #C4E1F7;
  --brand-300: #96CCF8;
  --brand-400: #62B3F4;
  --brand-500: #2D9AF0;
  --brand-600: #0f7fd8;
  --brand-700: #0D70BF;
  --brand-800: #0B5A99;
  --brand-900: #0C436E;
  --brand-950: #082A45;
  --brand: #0f7fd8;
  --brand-ink: #000000;
}

Colors that work with #0f7fd8

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#C0D9ED
Hairlines and dividers
Muted text#4B779B
Captions on the surface
Accent#DD330A
Second voice, not a rival
Dark variant#084677
Hover, pressed, headers
Light variant#E7F4FD
Selected rows, tints
Dark surface#141D24
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 #0f7fd8

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#D8680F
Analogous left#0FD8CD
Analogous right#0F1AD8
Split-complement 1#D80F1A
Split-complement 2#D8CD0F
Triadic 1#D80F7F
Triadic 2#7FD80F
Tetradic#CD0FD8

RGB percentages

Red5.9%
Green49.8%
Blue84.7%

CMYK percentages

Cyan93.1%
Magenta41.2%
Yellow0.0%
Key (black)15.3%

Color previews

#0f7fd8 text on a black background

contrast 5.05:1

Card sample

#0f7fd8 text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 127, 216, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 127, 216, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f7fd8;
background: linear-gradient(135deg, #0f7fd8, #250FD8);

Monochromatic scale

Palettes built from #0f7fd8

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.

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

#0f7fd8, answered

What color is #0f7fd8?

#0f7fd8 is a balanced electric blue, closest to Steel Blue (ΔE2000 4.1). It sits at 207° on the hue wheel with 87% saturation and 45% lightness, which reads as cool.

What is the RGB value of #0f7fd8?

rgb(15, 127, 216) — 15 red, 127 green and 216 blue out of 255, or 5.9% / 49.8% / 84.7% by channel.

Is #0f7fd8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2024 and perceived brightness is 48%, so black text on it reaches 5.05:1.

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

Black. It scores 5.05:1 against #0f7fd8, versus 4.16:1 for white — AA at any size.

What is the complementary color of #0f7fd8?

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

What colors go well with #0f7fd8?

For interface work: #F4F8FA as the surface, #C0D9ED for borders, #4B779B for secondary text, #DD330A as an accent and #084677 for hover and pressed states. For a palette, the analogous pair #0FD8CD and #0F1AD8 stays calm, while #D8680F is the loudest partner.

What is #0f7fd8 in CMYK for printing?

cmyk(93%, 41%, 0%, 15%). 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 #0f7fd8 warm or cool?

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

Work with #0f7fd8 in the Color Lab