Skip to content

#112b97

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

RGB
17, 43, 151
HSL
228°, 80%, 33%
CMYK
89, 72, 0, 41
Luminance
0.0408

At a glance

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

Hex
#112b97
Hue
228°
blue
Saturation
80%
electric
Lightness
33%
dark
Brightness
59%
HSV value
Perceived
24%
weighted brightness
Luminance
0.0408
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
White
11.56:1
Closest name
Midnight Blue
ΔE2000 7.1
Where it sits
Hue228° of 360°
Saturation80%
Lightness33%
Temperature
Warm ← → Cool90% 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#112b97
RGBrgb(17, 43, 151)
HSLhsl(228, 80%, 33%)
CMYKcmyk(89%, 72%, 0%, 41%)
LABlab(23.9 34.2 -60.9)
LCHlch(23.9 69.8 299.3)
OKLCHoklch(0.358 0.177 265.9)
Decimal1125271
Display P3color(display-p3 0.067 0.169 0.592)

Copy-ready code

/* CSS */
color: #112b97;
background-color: #112b97;
/* Tailwind (arbitrary) */
class="text-[#112b97] bg-[#112b97]"
/* SCSS */
$brand: #112b97;
/* SwiftUI */
Color(red: 0.067, green: 0.169, blue: 0.592)
/* Android */
Color.parseColor("#112b97")
/* Flutter */
Color(0xFF112B97)
/* Python / OpenCV (BGR) */
(151, 43, 17)

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 #112b97 · 11.56:1
Use #ffffffAAA at every size.
Aa
White text · 11.56:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.82:1
AA fail · AA large fail · AAA fail
Reading the other direction: #112b97 as text scores 11.56:1 on white and 1.82:1 on black.

Accessibility — WCAG contrast

Aa
#112b97 on white: 11.56:1
AA ✓ pass · AA-large · AAA
Aa
#112b97 on black: 1.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #003F9A
deuteranopia · #003295
tritanopia · #004A5E

Color scale — 50 to 950

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

#F3F4FC
#E6EAF9
#C7D0F5
#9AABF4
#6882EE
#3558E8
#193EDC
#1534B7
#112b97
#10226A
#0A1542
Base = 800Lightest = 50 · #F3F4FCDarkest = 950 · #0A1542
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6EAF9;
  --brand-200: #C7D0F5;
  --brand-300: #9AABF4;
  --brand-400: #6882EE;
  --brand-500: #3558E8;
  --brand-600: #193EDC;
  --brand-700: #1534B7;
  --brand-800: #112b97;
  --brand-900: #10226A;
  --brand-950: #0A1542;
  --brand: #112b97;
  --brand-ink: #ffffff;
}

Colors that work with #112b97

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#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#9A5C0E
Second voice, not a rival
Dark variant#0D2173
Hover, pressed, headers
Light variant#E8ECFC
Selected rows, tints
Dark surface#141724
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 #112b97

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#977D11
Analogous left#116E97
Analogous right#3A1197
Split-complement 1#973A11
Split-complement 2#6E9711
Triadic 1#97112B
Triadic 2#2B9711
Tetradic#97116E

RGB percentages

Red6.7%
Green16.9%
Blue59.2%

CMYK percentages

Cyan88.7%
Magenta71.5%
Yellow0.0%
Key (black)40.8%

Color previews

#112b97 text on a black background

contrast 1.82:1

Card sample

#112b97 text on a white background

contrast 11.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #112b97;
Background color
Panel with #112b97 background
background-color: #112b97;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #112b97;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(17, 43, 151, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(17, 43, 151, 0.45);
Border & gradient
Gradient panel
border: 3px solid #112b97;
background: linear-gradient(135deg, #112b97, #501197);

Monochromatic scale

Palettes built from #112b97

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.

#112b97 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.

#112b97, answered

What color is #112b97?

#112b97 is a dark electric blue, closest to Midnight Blue (ΔE2000 7.1). It sits at 228° on the hue wheel with 80% saturation and 33% lightness, which reads as cool.

What is the RGB value of #112b97?

rgb(17, 43, 151) — 17 red, 43 green and 151 blue out of 255, or 6.7% / 16.9% / 59.2% by channel.

Is #112b97 a light or a dark color?

It is a dark color. Relative luminance is 0.0408 and perceived brightness is 24%, so white text on it reaches 11.56:1.

Should I use black or white text on #112b97?

White. It scores 11.56:1 against #112b97, versus 1.82:1 for black — AAA at any size.

What is the complementary color of #112b97?

#977D11 sits directly opposite on the wheel. Softer options are the split-complements #973A11 and #6E9711, which give the same contrast with far less vibration.

What colors go well with #112b97?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B5A9B for secondary text, #9A5C0E as an accent and #0D2173 for hover and pressed states. For a palette, the analogous pair #116E97 and #3A1197 stays calm, while #977D11 is the loudest partner.

What is #112b97 in CMYK for printing?

cmyk(89%, 72%, 0%, 41%). 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 #112b97 warm or cool?

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

Work with #112b97 in the Color Lab