Skip to content

#157fdf

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

RGB
21, 127, 223
HSL
209°, 83%, 48%
CMYK
91, 43, 0, 13
Luminance
0.2067

At a glance

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

Hex
#157fdf
Hue
209°
blue
Saturation
83%
electric
Lightness
48%
balanced
Brightness
87%
HSV value
Perceived
48%
weighted brightness
Luminance
0.2067
WCAG relative
Temperature
Cool
99/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.13:1
Closest name
Steel Blue
ΔE2000 4.5
Where it sits
Hue209° of 360°
Saturation83%
Lightness48%
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#157fdf
RGBrgb(21, 127, 223)
HSLhsl(209, 83%, 48%)
CMYKcmyk(91%, 43%, 0%, 13%)
LABlab(52.6 7.7 -56.5)
LCHlch(52.6 57.1 277.7)
OKLCHoklch(0.593 0.170 252.2)
Decimal1408991
Display P3color(display-p3 0.082 0.498 0.875)

Copy-ready code

/* CSS */
color: #157fdf;
background-color: #157fdf;
/* Tailwind (arbitrary) */
class="text-[#157fdf] bg-[#157fdf]"
/* SCSS */
$brand: #157fdf;
/* SwiftUI */
Color(red: 0.082, green: 0.498, blue: 0.875)
/* Android */
Color.parseColor("#157fdf")
/* Flutter */
Color(0xFF157FDF)
/* Python / OpenCV (BGR) */
(223, 127, 21)

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

Accessibility — WCAG contrast

Aa
#157fdf on white: 4.09:1
AA ✗ fail · AA-large · AAA
Aa
#157fdf on black: 5.13:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D87E3
deuteranopia · #2376DD
tritanopia · #0096A4

Color scale — 50 to 950

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

#F2F8FC
#E6F0FA
#C6DFF6
#98C9F5
#65AEF1
#3293EC
#157fdf
#126ABA
#0E5595
#0F406C
#092843
Base = 600Lightest = 50 · #F2F8FCDarkest = 950 · #092843
:root {
  --brand-50: #F2F8FC;
  --brand-100: #E6F0FA;
  --brand-200: #C6DFF6;
  --brand-300: #98C9F5;
  --brand-400: #65AEF1;
  --brand-500: #3293EC;
  --brand-600: #157fdf;
  --brand-700: #126ABA;
  --brand-800: #0E5595;
  --brand-900: #0F406C;
  --brand-950: #092843;
  --brand: #157fdf;
  --brand-ink: #000000;
}

Colors that work with #157fdf

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#C0D7ED
Hairlines and dividers
Muted text#4B759B
Captions on the surface
Accent#E44010
Second voice, not a rival
Dark variant#0B4275
Hover, pressed, headers
Light variant#E8F3FD
Selected rows, tints
Dark surface#141C24
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 #157fdf

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#DF7515
Analogous left#15DFDA
Analogous right#151ADF
Split-complement 1#DF151A
Split-complement 2#DFDA15
Triadic 1#DF157F
Triadic 2#7FDF15
Tetradic#DA15DF

RGB percentages

Red8.2%
Green49.8%
Blue87.5%

CMYK percentages

Cyan90.6%
Magenta43.0%
Yellow0.0%
Key (black)12.5%

Color previews

#157fdf text on a black background

contrast 5.13:1

Card sample

#157fdf text on a white background

contrast 4.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #157fdf;
Background color
Panel with #157fdf background
background-color: #157fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #157fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(21, 127, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(21, 127, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #157fdf;
background: linear-gradient(135deg, #157fdf, #3215DF);

Monochromatic scale

Palettes built from #157fdf

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.

#157fdf 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.

#157fdf, answered

What color is #157fdf?

#157fdf is a balanced electric blue, closest to Steel Blue (ΔE2000 4.5). It sits at 209° on the hue wheel with 83% saturation and 48% lightness, which reads as cool.

What is the RGB value of #157fdf?

rgb(21, 127, 223) — 21 red, 127 green and 223 blue out of 255, or 8.2% / 49.8% / 87.5% by channel.

Is #157fdf a light or a dark color?

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

Should I use black or white text on #157fdf?

Black. It scores 5.13:1 against #157fdf, versus 4.09:1 for white — AA at any size.

What is the complementary color of #157fdf?

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

What colors go well with #157fdf?

For interface work: #F4F8FA as the surface, #C0D7ED for borders, #4B759B for secondary text, #E44010 as an accent and #0B4275 for hover and pressed states. For a palette, the analogous pair #15DFDA and #151ADF stays calm, while #DF7515 is the loudest partner.

What is #157fdf in CMYK for printing?

cmyk(91%, 43%, 0%, 13%). 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 #157fdf 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 #1535DF; nudged cooler, #116DCA.

Work with #157fdf in the Color Lab