Skip to content

#0f57ab

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

RGB
15, 87, 171
HSL
212°, 84%, 37%
CMYK
91, 49, 0, 33
Luminance
0.0986

At a glance

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

Hex
#0f57ab
Hue
212°
blue
Saturation
84%
electric
Lightness
37%
dark
Brightness
67%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0986
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
White
7.07:1
Closest name
Royal Blue
ΔE2000 10.4
Where it sits
Hue212° of 360°
Saturation84%
Lightness37%
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#0f57ab
RGBrgb(15, 87, 171)
HSLhsl(212, 84%, 37%)
CMYKcmyk(91%, 49%, 0%, 33%)
LABlab(37.6 12.3 -50.7)
LCHlch(37.6 52.1 283.7)
OKLCHoklch(0.466 0.150 256.3)
Decimal1005483
Display P3color(display-p3 0.059 0.341 0.671)

Copy-ready code

/* CSS */
color: #0f57ab;
background-color: #0f57ab;
/* Tailwind (arbitrary) */
class="text-[#0f57ab] bg-[#0f57ab]"
/* SCSS */
$brand: #0f57ab;
/* SwiftUI */
Color(red: 0.059, green: 0.341, blue: 0.671)
/* Android */
Color.parseColor("#0f57ab")
/* Flutter */
Color(0xFF0F57AB)
/* Python / OpenCV (BGR) */
(171, 87, 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#ffffff on #0f57ab · 7.07:1
Use #ffffffAAA at every size.
Aa
White text · 7.07:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.97:1
AA fail · AA large fail · AAA fail
Reading the other direction: #0f57ab as text scores 7.07:1 on white and 2.97:1 on black.

Accessibility — WCAG contrast

Aa
#0f57ab on white: 7.07:1
AA ✓ pass · AA-large · AAA
Aa
#0f57ab on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2460AE
deuteranopia · #0052A9
tritanopia · #006B79

Color scale — 50 to 950

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

#F2F7FC
#E6EFFA
#C5DCF6
#98C3F6
#64A5F1
#3188ED
#1473E1
#0f57ab
#0D4C96
#0E3A6C
#092444
Base = 700Lightest = 50 · #F2F7FCDarkest = 950 · #092444
:root {
  --brand-50: #F2F7FC;
  --brand-100: #E6EFFA;
  --brand-200: #C5DCF6;
  --brand-300: #98C3F6;
  --brand-400: #64A5F1;
  --brand-500: #3188ED;
  --brand-600: #1473E1;
  --brand-700: #0f57ab;
  --brand-800: #0D4C96;
  --brand-900: #0E3A6C;
  --brand-950: #092444;
  --brand: #0f57ab;
  --brand-ink: #ffffff;
}

Colors that work with #0f57ab

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#F4F7FA
Tinted page background
Border#C0D4ED
Hairlines and dividers
Muted text#4B709B
Captions on the surface
Accent#AF3A0B
Second voice, not a rival
Dark variant#0A3C75
Hover, pressed, headers
Light variant#E8F1FD
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 #0f57ab

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
  • Text on black or near-black surfaces
  • 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#AB630F
Analogous left#0FA5AB
Analogous right#150FAB
Split-complement 1#AB150F
Split-complement 2#A5AB0F
Triadic 1#AB0F57
Triadic 2#57AB0F
Tetradic#AB0FA5

RGB percentages

Red5.9%
Green34.1%
Blue67.1%

CMYK percentages

Cyan91.2%
Magenta49.1%
Yellow0.0%
Key (black)32.9%

Color previews

#0f57ab text on a black background

contrast 2.97:1

Card sample

#0f57ab text on a white background

contrast 7.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(15, 87, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 87, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f57ab;
background: linear-gradient(135deg, #0f57ab, #2F0FAB);

Monochromatic scale

Palettes built from #0f57ab

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.

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

#0f57ab, answered

What color is #0f57ab?

#0f57ab is a dark electric blue, closest to Royal Blue (ΔE2000 10.4). It sits at 212° on the hue wheel with 84% saturation and 37% lightness, which reads as cool.

What is the RGB value of #0f57ab?

rgb(15, 87, 171) — 15 red, 87 green and 171 blue out of 255, or 5.9% / 34.1% / 67.1% by channel.

Is #0f57ab a light or a dark color?

It is a dark color. Relative luminance is 0.0986 and perceived brightness is 35%, so white text on it reaches 7.07:1.

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

White. It scores 7.07:1 against #0f57ab, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #0f57ab?

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

What colors go well with #0f57ab?

For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B709B for secondary text, #AF3A0B as an accent and #0A3C75 for hover and pressed states. For a palette, the analogous pair #0FA5AB and #150FAB stays calm, while #AB630F is the loudest partner.

What is #0f57ab in CMYK for printing?

cmyk(91%, 49%, 0%, 33%). 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 #0f57ab 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 #0F1EAB; nudged cooler, #0B4C95.

Work with #0f57ab in the Color Lab