Skip to content

#162a39

a deep, soft blue · cool · closest name: Midnight Blue

RGB
22, 42, 57
HSL
206°, 44%, 16%
CMYK
61, 26, 0, 78
Luminance
0.0212

At a glance

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

Hex
#162a39
Hue
206°
blue
Saturation
44%
soft
Lightness
16%
deep
Brightness
22%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0212
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Soft
Best ink
White
14.74:1
Closest name
Midnight Blue
ΔE2000 10.7
Where it sits
Hue206° of 360°
Saturation44%
Lightness16%
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#162a39
RGBrgb(22, 42, 57)
HSLhsl(206, 44%, 16%)
CMYKcmyk(61%, 26%, 0%, 78%)
LABlab(16.1 -2.8 -12.1)
LCHlch(16.1 12.4 257.0)
OKLCHoklch(0.276 0.038 242.3)
Decimal1452601
Display P3color(display-p3 0.086 0.165 0.224)

Copy-ready code

/* CSS */
color: #162a39;
background-color: #162a39;
/* Tailwind (arbitrary) */
class="text-[#162a39] bg-[#162a39]"
/* SCSS */
$brand: #162a39;
/* SwiftUI */
Color(red: 0.086, green: 0.165, blue: 0.224)
/* Android */
Color.parseColor("#162a39")
/* Flutter */
Color(0xFF162A39)
/* Python / OpenCV (BGR) */
(57, 42, 22)

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

Accessibility — WCAG contrast

Aa
#162a39 on white: 14.74:1
AA ✓ pass · AA-large · AAA
Aa
#162a39 on black: 1.42:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #232A3A
deuteranopia · #1F2639
tritanopia · #032E2F

Color scale — 50 to 950

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

#F5F8FA
#EAF0F5
#D1E0EB
#AECAE0
#86B0D0
#5D96C1
#4482B1
#396C93
#2D5776
#244156
#162a39
Base = 950Lightest = 50 · #F5F8FADarkest = 950 · #162a39
:root {
  --brand-50: #F5F8FA;
  --brand-100: #EAF0F5;
  --brand-200: #D1E0EB;
  --brand-300: #AECAE0;
  --brand-400: #86B0D0;
  --brand-500: #5D96C1;
  --brand-600: #4482B1;
  --brand-700: #396C93;
  --brand-800: #2D5776;
  --brand-900: #244156;
  --brand-950: #162a39;
  --brand: #162a39;
  --brand-ink: #ffffff;
}

Colors that work with #162a39

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#C4D9E8
Hairlines and dividers
Muted text#4B799B
Captions on the surface
Accent#3B1B14
Second voice, not a rival
Dark variant#24445C
Hover, pressed, headers
Light variant#EDF3F8
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 #162a39

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • 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#392516
Analogous left#163937
Analogous right#161939
Split-complement 1#391619
Split-complement 2#393716
Triadic 1#39162A
Triadic 2#2A3916
Tetradic#371639

RGB percentages

Red8.6%
Green16.5%
Blue22.4%

CMYK percentages

Cyan61.4%
Magenta26.3%
Yellow0.0%
Key (black)77.6%

Color previews

#162a39 text on a black background

contrast 1.42:1

Card sample

#162a39 text on a white background

contrast 14.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #162a39;
Background color
Panel with #162a39 background
background-color: #162a39;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #162a39;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(22, 42, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 42, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #162a39;
background: linear-gradient(135deg, #162a39, #191639);

Monochromatic scale

Palettes built from #162a39

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.

#162a39 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.

#162a39, answered

What color is #162a39?

#162a39 is a deep soft blue, closest to Midnight Blue (ΔE2000 10.7). It sits at 206° on the hue wheel with 44% saturation and 16% lightness, which reads as cool.

What is the RGB value of #162a39?

rgb(22, 42, 57) — 22 red, 42 green and 57 blue out of 255, or 8.6% / 16.5% / 22.4% by channel.

Is #162a39 a light or a dark color?

It is a dark color. Relative luminance is 0.0212 and perceived brightness is 15%, so white text on it reaches 14.74:1.

Should I use black or white text on #162a39?

White. It scores 14.74:1 against #162a39, versus 1.42:1 for black — AAA at any size.

What is the complementary color of #162a39?

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

What colors go well with #162a39?

For interface work: #F4F8FA as the surface, #C4D9E8 for borders, #4B799B for secondary text, #3B1B14 as an accent and #24445C for hover and pressed states. For a palette, the analogous pair #163937 and #161939 stays calm, while #392516 is the loudest partner.

What is #162a39 in CMYK for printing?

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

Is #162a39 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 #161D39; nudged cooler, #0E1A27.

Work with #162a39 in the Color Lab