Skip to content

#171821

a deep, soft blue · warm · closest name: black

RGB
23, 24, 33
HSL
234°, 18%, 11%
CMYK
30, 27, 0, 87
Luminance
0.0095

Every format

HEX#171821
RGBrgb(23, 24, 33)
HSLhsl(234, 18%, 11%)
CMYKcmyk(30%, 27%, 0%, 87%)
LABlab(8.5 2.1 -6.4)
LCHlch(8.5 6.8 288.6)
OKLCHoklch(0.212 0.018 279.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#171821 on white: 17.66:1
AA ✓ pass · AA-large · AAA
Aa
#171821 on black: 1.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red9.0%
Green9.4%
Blue12.9%

CMYK percentages

Cyan30.3%
Magenta27.3%
Yellow0.0%
Key (black)87.1%

Color previews

#171821 text on a black background

contrast 1.19:1

Card sample

#171821 text on a white background

contrast 17.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(23, 24, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 24, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #171821;
background: linear-gradient(135deg, #171821, #1D1721);

Monochromatic scale

Palettes built from #171821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #171821 in the Color Lab