Skip to content

#161970

a dark, vivid blue · warm · “midnightblue”

RGB
22, 25, 112
HSL
238°, 67%, 26%
CMYK
80, 78, 0, 56
Luminance
0.0204

Every format

HEX#161970
RGBrgb(22, 25, 112)
HSLhsl(238, 67%, 26%)
CMYKcmyk(80%, 78%, 0%, 56%)
LABlab(15.7 31.4 -49.9)
LCHlch(15.7 59.0 302.2)
OKLCHoklch(0.286 0.144 271.3)

Copy-ready code

/* CSS */
color: #161970;
background-color: #161970;
/* Tailwind (arbitrary) */
class="text-[#161970] bg-[#161970]"
/* SCSS */
$brand: #161970;
/* SwiftUI */
Color(red: 0.086, green: 0.098, blue: 0.439)
/* Android */
Color.parseColor("#161970")

Accessibility — WCAG contrast

Aa
#161970 on white: 14.92:1
AA ✓ pass · AA-large · AAA
Aa
#161970 on black: 1.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green9.8%
Blue43.9%

CMYK percentages

Cyan80.4%
Magenta77.7%
Yellow0.0%
Key (black)56.1%

Color previews

#161970 text on a black background

contrast 1.41:1

Card sample

#161970 text on a white background

contrast 14.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 25, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 25, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #161970;
background: linear-gradient(135deg, #161970, #4F1670);

Monochromatic scale

Palettes built from #161970

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #161970 in the Color Lab