Skip to content

#1f72ac

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

RGB
31, 114, 172
HSL
205°, 70%, 40%
CMYK
82, 34, 0, 33
Luminance
0.1530

At a glance

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

Hex
#1f72ac
Hue
205°
blue
Saturation
70%
vivid
Lightness
40%
dark
Brightness
67%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1530
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.17:1
Closest name
Steel Blue
ΔE2000 6.6
Where it sits
Hue205° of 360°
Saturation70%
Lightness40%
Temperature
Warm ← → Cool98% 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#1f72ac
RGBrgb(31, 114, 172)
HSLhsl(205, 70%, 40%)
CMYKcmyk(82%, 34%, 0%, 33%)
LABlab(46.0 -3.2 -37.7)
LCHlch(46.0 37.9 265.1)
OKLCHoklch(0.533 0.119 244.6)
Decimal2060972
Display P3color(display-p3 0.122 0.447 0.675)

Copy-ready code

/* CSS */
color: #1f72ac;
background-color: #1f72ac;
/* Tailwind (arbitrary) */
class="text-[#1f72ac] bg-[#1f72ac]"
/* SCSS */
$brand: #1f72ac;
/* SwiftUI */
Color(red: 0.122, green: 0.447, blue: 0.675)
/* Android */
Color.parseColor("#1f72ac")
/* Flutter */
Color(0xFF1F72AC)
/* Python / OpenCV (BGR) */
(172, 114, 31)

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

Accessibility — WCAG contrast

Aa
#1f72ac on white: 5.17:1
AA ✓ pass · AA-large · AAA
Aa
#1f72ac on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5774AE
deuteranopia · #4367AB
tritanopia · #008087

Color scale — 50 to 950

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

#F3F8FB
#E7F1F8
#CAE1F2
#A0CEEE
#70B5E5
#419DDD
#2589CF
#1f72ac
#195C8A
#164464
#0E2B3F
Base = 700Lightest = 50 · #F3F8FBDarkest = 950 · #0E2B3F
:root {
  --brand-50: #F3F8FB;
  --brand-100: #E7F1F8;
  --brand-200: #CAE1F2;
  --brand-300: #A0CEEE;
  --brand-400: #70B5E5;
  --brand-500: #419DDD;
  --brand-600: #2589CF;
  --brand-700: #1f72ac;
  --brand-800: #195C8A;
  --brand-900: #164464;
  --brand-950: #0E2B3F;
  --brand: #1f72ac;
  --brand-ink: #ffffff;
}

Colors that work with #1f72ac

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#C0DAED
Hairlines and dividers
Muted text#4B7A9B
Captions on the surface
Accent#B0331B
Second voice, not a rival
Dark variant#13486C
Hover, pressed, headers
Light variant#E9F4FB
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 #1f72ac

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#AC591F
Analogous left#1FACA0
Analogous right#1F2BAC
Split-complement 1#AC1F2B
Split-complement 2#ACA01F
Triadic 1#AC1F72
Triadic 2#72AC1F
Tetradic#A01FAC

RGB percentages

Red12.2%
Green44.7%
Blue67.5%

CMYK percentages

Cyan82.0%
Magenta33.7%
Yellow0.0%
Key (black)32.5%

Color previews

#1f72ac text on a black background

contrast 4.06:1

Card sample

#1f72ac text on a white background

contrast 5.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #1f72ac;
Background color
Panel with #1f72ac background
background-color: #1f72ac;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #1f72ac;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(31, 114, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(31, 114, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #1f72ac;
background: linear-gradient(135deg, #1f72ac, #2A1FAC);

Monochromatic scale

Palettes built from #1f72ac

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.

#1f72ac 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

Converts to four-color process without much drama. Proof it anyway.

#1f72ac, answered

What color is #1f72ac?

#1f72ac is a dark vivid blue, closest to Steel Blue (ΔE2000 6.6). It sits at 205° on the hue wheel with 70% saturation and 40% lightness, which reads as cool.

What is the RGB value of #1f72ac?

rgb(31, 114, 172) — 31 red, 114 green and 172 blue out of 255, or 12.2% / 44.7% / 67.5% by channel.

Is #1f72ac a light or a dark color?

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

Should I use black or white text on #1f72ac?

White. It scores 5.17:1 against #1f72ac, versus 4.06:1 for black — AA at any size.

What is the complementary color of #1f72ac?

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

What colors go well with #1f72ac?

For interface work: #F4F8FA as the surface, #C0DAED for borders, #4B7A9B for secondary text, #B0331B as an accent and #13486C for hover and pressed states. For a palette, the analogous pair #1FACA0 and #1F2BAC stays calm, while #AC591F is the loudest partner.

What is #1f72ac in CMYK for printing?

cmyk(82%, 34%, 0%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #1f72ac warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1FA6AC; nudged cooler, #195B98.

Work with #1f72ac in the Color Lab