Skip to content

#2170ab

a dark, vivid blue · cool · closest name: steelblue

RGB
33, 112, 171
HSL
206°, 68%, 40%
CMYK
81, 35, 0, 33
Luminance
0.1485

Every format

HEX#2170ab
RGBrgb(33, 112, 171)
HSLhsl(206, 68%, 40%)
CMYKcmyk(81%, 35%, 0%, 33%)
LABlab(45.4 -2.2 -38.1)
LCHlch(45.4 38.2 266.7)
OKLCHoklch(0.528 0.119 245.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2170ab on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#2170ab on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red12.9%
Green43.9%
Blue67.1%

CMYK percentages

Cyan80.7%
Magenta34.5%
Yellow0.0%
Key (black)32.9%

Color previews

#2170ab text on a black background

contrast 3.97:1

Card sample

#2170ab text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(33, 112, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(33, 112, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #2170ab;
background: linear-gradient(135deg, #2170ab, #2E21AB);

Monochromatic scale

Palettes built from #2170ab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2170ab in the Color Lab