Skip to content

#162cc7

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

RGB
22, 44, 199
HSL
233°, 80%, 43%
CMYK
89, 78, 0, 22
Luminance
0.0610

At a glance

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

Hex
#162cc7
Hue
233°
blue
Saturation
80%
electric
Lightness
43%
dark
Brightness
78%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0610
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Electric
Best ink
White
9.46:1
Closest name
Medium Blue
ΔE2000 5.6
Where it sits
Hue233° of 360°
Saturation80%
Lightness43%
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#162cc7
RGBrgb(22, 44, 199)
HSLhsl(233, 80%, 43%)
CMYKcmyk(89%, 78%, 0%, 22%)
LABlab(29.6 50.8 -80.2)
LCHlch(29.6 94.9 302.4)
OKLCHoklch(0.415 0.233 266.4)
Decimal1453255
Display P3color(display-p3 0.086 0.173 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#162cc7 on white: 9.46:1
AA ✓ pass · AA-large · AAA
Aa
#162cc7 on black: 2.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004FCB
deuteranopia · #003DC4
tritanopia · #005C79

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #162cc7 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
#C6CCF5
#9AA5F4
#6778EE
#354BE9
#1831DC
#162cc7
#102193
#101B6A
#0A1142
Base = 700Lightest = 50 · #F3F4FCDarkest = 950 · #0A1142
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C6CCF5;
  --brand-300: #9AA5F4;
  --brand-400: #6778EE;
  --brand-500: #354BE9;
  --brand-600: #1831DC;
  --brand-700: #162cc7;
  --brand-800: #102193;
  --brand-900: #101B6A;
  --brand-950: #0A1142;
  --brand: #162cc7;
  --brand-ink: #ffffff;
}

Colors that work with #162cc7

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#C0C5ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#BB7C11
Second voice, not a rival
Dark variant#0D1973
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 #162cc7

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#C7B116
Analogous left#1685C7
Analogous right#5816C7
Split-complement 1#C75816
Split-complement 2#85C716
Triadic 1#C7162C
Triadic 2#2CC716
Tetradic#C71685

RGB percentages

Red8.6%
Green17.3%
Blue78.0%

CMYK percentages

Cyan88.9%
Magenta77.9%
Yellow0.0%
Key (black)22.0%

Color previews

#162cc7 text on a black background

contrast 2.22:1

Card sample

#162cc7 text on a white background

contrast 9.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 44, 199, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 44, 199, 0.45);
Border & gradient
Gradient panel
border: 3px solid #162cc7;
background: linear-gradient(135deg, #162cc7, #7616C7);

Monochromatic scale

Palettes built from #162cc7

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.

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

#162cc7, answered

What color is #162cc7?

#162cc7 is a dark electric blue, closest to Medium Blue (ΔE2000 5.6). It sits at 233° on the hue wheel with 80% saturation and 43% lightness, which reads as cool.

What is the RGB value of #162cc7?

rgb(22, 44, 199) — 22 red, 44 green and 199 blue out of 255, or 8.6% / 17.3% / 78% by channel.

Is #162cc7 a light or a dark color?

It is a dark color. Relative luminance is 0.0610 and perceived brightness is 30%, so white text on it reaches 9.46:1.

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

White. It scores 9.46:1 against #162cc7, versus 2.22:1 for black — AAA at any size.

What is the complementary color of #162cc7?

#C7B116 sits directly opposite on the wheel. Softer options are the split-complements #C75816 and #85C716, which give the same contrast with far less vibration.

What colors go well with #162cc7?

For interface work: #F4F5FA as the surface, #C0C5ED for borders, #4B559B for secondary text, #BB7C11 as an accent and #0D1973 for hover and pressed states. For a palette, the analogous pair #1685C7 and #5816C7 stays calm, while #C7B116 is the loudest partner.

What is #162cc7 in CMYK for printing?

cmyk(89%, 78%, 0%, 22%). 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 #162cc7 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 #4116C7; nudged cooler, #144BC9.

Work with #162cc7 in the Color Lab