Skip to content

#162aac

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

RGB
22, 42, 172
HSL
232°, 77%, 38%
CMYK
87, 76, 0, 33
Luminance
0.0481

At a glance

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

Hex
#162aac
Hue
232°
blue
Saturation
77%
electric
Lightness
38%
dark
Brightness
67%
HSV value
Perceived
26%
weighted brightness
Luminance
0.0481
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
10.71:1
Closest name
Medium Blue
ΔE2000 6.4
Where it sits
Hue232° of 360°
Saturation77%
Lightness38%
Temperature
Warm ← → Cool88% 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#162aac
RGBrgb(22, 42, 172)
HSLhsl(232, 77%, 38%)
CMYKcmyk(87%, 76%, 0%, 33%)
LABlab(26.2 42.7 -69.9)
LCHlch(26.2 82.0 301.4)
OKLCHoklch(0.381 0.203 266.9)
Decimal1452716
Display P3color(display-p3 0.086 0.165 0.675)

Copy-ready code

/* CSS */
color: #162aac;
background-color: #162aac;
/* Tailwind (arbitrary) */
class="text-[#162aac] bg-[#162aac]"
/* SCSS */
$brand: #162aac;
/* SwiftUI */
Color(red: 0.086, green: 0.165, blue: 0.675)
/* Android */
Color.parseColor("#162aac")
/* Flutter */
Color(0xFF162AAC)
/* Python / OpenCV (BGR) */
(172, 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 #162aac · 10.71:1
Use #ffffffAAA at every size.
Aa
White text · 10.71:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.96:1
AA fail · AA large fail · AAA fail
Reading the other direction: #162aac as text scores 10.71:1 on white and 1.96:1 on black.

Accessibility — WCAG contrast

Aa
#162aac on white: 10.71:1
AA ✓ pass · AA-large · AAA
Aa
#162aac on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0045B0
deuteranopia · #0036AA
tritanopia · #005169

Color scale — 50 to 950

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

#F3F4FC
#E6E9F9
#C7CDF4
#9CA7F2
#6A7BEC
#384FE6
#1C35D9
#162aac
#132391
#121D69
#0B1241
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0B1241
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C7CDF4;
  --brand-300: #9CA7F2;
  --brand-400: #6A7BEC;
  --brand-500: #384FE6;
  --brand-600: #1C35D9;
  --brand-700: #162aac;
  --brand-800: #132391;
  --brand-900: #121D69;
  --brand-950: #0B1241;
  --brand: #162aac;
  --brand-ink: #ffffff;
}

Colors that work with #162aac

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#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#B07312
Second voice, not a rival
Dark variant#0E1C71
Hover, pressed, headers
Light variant#E8EBFC
Selected rows, tints
Dark surface#141624
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 #162aac

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#AC9816
Analogous left#1675AC
Analogous right#4D16AC
Split-complement 1#AC4D16
Split-complement 2#75AC16
Triadic 1#AC162A
Triadic 2#2AAC16
Tetradic#AC1675

RGB percentages

Red8.6%
Green16.5%
Blue67.5%

CMYK percentages

Cyan87.2%
Magenta75.6%
Yellow0.0%
Key (black)32.5%

Color previews

#162aac text on a black background

contrast 1.96:1

Card sample

#162aac text on a white background

contrast 10.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #162aac

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.

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

#162aac, answered

What color is #162aac?

#162aac is a dark electric blue, closest to Medium Blue (ΔE2000 6.4). It sits at 232° on the hue wheel with 77% saturation and 38% lightness, which reads as cool.

What is the RGB value of #162aac?

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

Is #162aac a light or a dark color?

It is a dark color. Relative luminance is 0.0481 and perceived brightness is 26%, so white text on it reaches 10.71:1.

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

White. It scores 10.71:1 against #162aac, versus 1.96:1 for black — AAA at any size.

What is the complementary color of #162aac?

#AC9816 sits directly opposite on the wheel. Softer options are the split-complements #AC4D16 and #75AC16, which give the same contrast with far less vibration.

What colors go well with #162aac?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #B07312 as an accent and #0E1C71 for hover and pressed states. For a palette, the analogous pair #1675AC and #4D16AC stays calm, while #AC9816 is the loudest partner.

What is #162aac in CMYK for printing?

cmyk(87%, 76%, 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 #162aac warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #3916AC; nudged cooler, #1446AE.

Work with #162aac in the Color Lab