Black Friday 2026: design deals we check every day. See the deals →

#171A21 Hex Color

Online color picker to view shades, tints, color codes, and complementary colors

 
#171a21
Hex color #171a21 graphic
#171a21 is a dusty, near-black blue with a distinct, muted character. This dim shade works effectively as a full-page background for modern UI designs because it offers a soft alternative to pure black. It pairs well with muted teals or cool grays to keep the aesthetic cohesive. The hex code for this color is #171a21, and it maintains high readability for white text.

Color Conversions

Hex color #171a21 converted to various formats including hex, rgb, hsl, and more.

  • Hex#171a21
  • RGBrgb(23, 26, 33)
  • RGB Percentagesrgb(9%, 10%, 13%)
  • CMYK30%, 21%, 0%, 87%
  • HSLhsl(222, 18%, 11%)
  • HSVhsv(222, 30%, 13%)
  • OKLCHoklch(21.8% 0.015 266.9)
  • LCH9, 5, 277
  • LAB9, 1, -5
  • LUV9, -1, -4
  • XYZ1, 1, 2
  • Closest Tailwind Colormist-900

Color Variations

Variations of this color including shaded, tints, and complementary colors.

Brighten

Tints of the color as they brighten toward white.

#171a21
#2a2d34
#3e4147
#53565c
#6a6c71
#818387
#999a9e
#b1b3b6
#cbcccd
#e5e5e6

Darken

Shades of the color as they darken toward black.

#171a21
#12151b
#0e1016
#0a0c10
#06070b
#040406
#020203
#010101
#000000
#000000

Desaturate

Desaturated versions of this color.

#171a21
#20232a
#2a2c32
#34363b
#3e4045
#484a4e
#535458
#5e5f62
#696a6c
#747576

Hue

Various hues of this color.

#21171d
#201721
#1c1721
#181721
#171a21
#171e21
#172120
#17211b
#172117

Analogous

Analogous color palette of this color, meaning colors that are next to each other on the color wheel.

#171a21
#171e21
#171c21

Monochromatic

Monochromatic colors for this color, monochromatic colors are all of the same hue.

#171a21
#353b4b
#525d76
#707ea0
#8da0cb
#abc1f5

Complementary

Complementary colors for this color, complementary colors are opposites on the color wheel.

#171a21
#211e17

Split Complement

Split-complementary colors which use adjacent colors of this color’s complementary color.

#171a21
#201721
#1e2117

Triad

Triad colors which pull themselves in a triangle across the color wheel.

#171a21
#21171a
#1a2117

Tetrad

Tetrad colors which pull themselves in a square shape across the color wheel.

#171a21
#21171f
#211e17
#172119

Contrast Checker

Contrast test results for the color #171a21 on black and white backgrounds.
Open in contrast checker →

White Background

Passes AAA
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Black Background

Fails WCAG
Example Headline (24px)

The font-size of this text is 18.5px. Click anywhere to edit this text. Lorem Ipsum is simply dummy text of the printing and typesetting industry.

Color Blindness Simulation

See how #171a21 appears to people with color vision deficiency (CVD).

Normal Vision
#171a21
Protanopia
#191921
Red-blind (~1% of males)
Deuteranopia
#191921
Green-blind (~1% of males)
Tritanopia
#161b1b
Blue-blind (very rare)
Achromatopsia
#1a1a1a
Total color blindness

Questions about #171a21

What is #171a21 in RGB, HSL and CMYK?
In RGB, #171a21 is rgb(23, 26, 33), in HSL hsl(222, 18%, 11%) and in CMYK 30%, 21%, 0%, 87%. Browse more shades of black with names and hex codes.
Where should I use #171a21 in a web interface?
#171a21 works best as a primary background color for dark mode interfaces because it reduces eye strain compared to pitch black. It provides a professional, grounded canvas that allows bright interface elements or white text to pop with superior contrast.
What colors pair well with #171a21 for a balanced palette?
This shade pairs beautifully with muted teals or cool gray tones to maintain a cohesive, moody aesthetic. To add warmth, consider introducing soft, desaturated mustard accents, which balance the inherent coolness of the deep blue undertones.
Is #171a21 readable on white or black?
#171a21 has a 17.41:1 contrast ratio on white and 1.20:1 on black. WCAG asks for 4.5:1 for body text and 3:1 for large text, so on white it works for body text and on black it is too faint for text. Try other pairs in the contrast checker.