#171C28

Closest named color: Rich Black (#0D1B2A). oklch(22.7% 0.025 266.9), rgb(23, 28, 40).

Aa

White text reads best on this color (17.02:1).

About this color

#171C28 is a very dark close to neutral grey. In OKLCH its lightness is 23%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Rich Black (#0D1B2A), ΔE 0.017 away. White text reads best on it, at 17.02:1.

Hue familyNeutrals
Lightnessvery dark (23%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.23:1
White text17.02:1

Values

HEX#171C28
RGBrgb(23, 28, 40)
HSLhsl(222, 27%, 12%)
OKLCHoklch(22.7% 0.025 266.9)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #171C28 17.02:1 AAA Lc -106.3 Preferred for body text
Black text on #171C28 1.23:1 Fails Lc 0.0 Not readable
#171C28 text on white 17.02:1 AAA Lc 103.9 Preferred for body text
#171C28 text on black 1.23:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E7EAF0

    oklch(93.6% 0.009 264.5)

  3. Step 200

    200

    #D4D9E4

    oklch(88.5% 0.016 266.3)

  4. Step 300

    300

    #B8C1D4

    oklch(81% 0.029 265.4)

  5. Step 400

    400

    #93A0BF

    oklch(70.6% 0.048 267.3)

  6. Step 500

    500

    #7989AE

    oklch(63.1% 0.059 266.5)

  7. Step 600

    600

    #62729A

    oklch(55.5% 0.065 267.4)

  8. Step 700

    700

    #516083

    oklch(49.1% 0.059 266.3)

  9. Step 800

    800

    #434E6B

    oklch(42.7% 0.05 268.2)

  10. Step 900

    900

    #384157

    oklch(37.7% 0.04 267.2)

  11. Step 950

    950 (this color)

    #171C28

    oklch(22.7% 0.025 266.9)

Export this scale for Tailwind in the Tailwind colors tool

#171C28 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#181D290.004
Deuteranopia (no green cones)#171B280.004
Tritanopia (no blue cones)#121E200.021
Achromatopsia (no color)#1C1C1C0.025

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #171C28

    #171C28

    oklch(22.7% 0.025 266.9)

  • #211C0F

    #211C0F

    oklch(22.8% 0.024 89.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171C28

    #171C28

    oklch(22.7% 0.025 266.9)

  • #111E26

    #111E26

    oklch(22.7% 0.024 236.3)

  • #1D1A27

    #1D1A27

    oklch(22.7% 0.025 294.9)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #171C28

    #171C28

    oklch(22.7% 0.025 266.9)

  • #251911

    #251911

    oklch(22.6% 0.024 54.8)

  • #1B1E10

    #1B1E10

    oklch(22.7% 0.026 118.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171C28

    #171C28

    oklch(22.7% 0.025 266.9)

  • #271816

    #271816

    oklch(22.8% 0.025 27.6)

  • #151F16

    #151F16

    oklch(22.6% 0.022 147.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171C28

    #171C28

    oklch(22.7% 0.025 266.9)

  • #26171C

    #26171C

    oklch(22.6% 0.026 357.7)

  • #211C0F

    #211C0F

    oklch(22.8% 0.024 89.3)

  • #0F201C

    #0F201C

    oklch(22.7% 0.024 177.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #171C28, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #171C28 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.