#170C1C

Closest named color: Almost Black (#070D0D). oklch(17.8% 0.036 314.7), rgb(23, 12, 28).

Aa

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

About this color

#170C1C is a very dark, muted purple. In OKLCH its lightness is 18%, its chroma 0.036 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Almost Black (#070D0D), ΔE 0.049 away. White text reads best on it, at 18.99:1.

Hue familyPurples
Lightnessvery dark (18%)
Chromamuted (0.036)
Temperaturein between
Nearest nameAlmost Black (#070D0D)
Black text1.10:1
White text18.99:1

Values

HEX#170C1C
RGBrgb(23, 12, 28)
HSLhsl(281, 40%, 8%)
OKLCHoklch(17.8% 0.036 314.7)

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 #170C1C 18.99:1 AAA Lc -107.4 Preferred for body text
Black text on #170C1C 1.10:1 Fails Lc 0.0 Not readable
#170C1C text on white 18.99:1 AAA Lc 105.4 Preferred for body text
#170C1C text on black 1.10: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

    #F7F4F8

    oklch(97.1% 0.006 317.8)

  2. Step 100

    100

    #EDE7F0

    oklch(93.5% 0.014 314.8)

  3. Step 200

    200

    #DFD5E4

    oklch(88.5% 0.023 314.7)

  4. Step 300

    300

    #CBB9D4

    oklch(80.9% 0.042 314.6)

  5. Step 400

    400

    #B194BE

    oklch(70.7% 0.068 315.3)

  6. Step 500

    500

    #9D79AE

    oklch(63% 0.088 314.7)

  7. Step 600

    600

    #886299

    oklch(55.6% 0.093 315)

  8. Step 700

    700

    #735183

    oklch(49.1% 0.087 314.5)

  9. Step 800

    800

    #5E426A

    oklch(42.6% 0.073 315.4)

  10. Step 900

    900

    #4D3856

    oklch(37.6% 0.057 315.5)

  11. Step 950

    950 (this color)

    #170C1C

    oklch(17.8% 0.036 314.7)

Export this scale for Tailwind in the Tailwind colors tool

#170C1C 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)#09101D0.030
Deuteranopia (no green cones)#0C111C0.027
Tritanopia (no blue cones)#170E120.024
Achromatopsia (no color)#1010100.036

Harmonies

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

Complementary

The opposite hue (180°).

  • #170C1C

    #170C1C

    oklch(17.8% 0.036 314.7)

  • #0A1505

    #0A1505

    oklch(18% 0.036 135.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #170C1C

    #170C1C

    oklch(17.8% 0.036 314.7)

  • #100F20

    #100F20

    oklch(18% 0.034 285)

  • #1C0A15

    #1C0A15

    oklch(17.8% 0.036 344)

Open the analogous palette in the generator

Split complementary

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

  • #170C1C

    #170C1C

    oklch(17.8% 0.036 314.7)

  • #141201

    #141201

    oklch(17.9% 0.035 104.1)

  • #01160D

    #01160D

    oklch(17.8% 0.036 164.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #170C1C

    #170C1C

    oklch(17.8% 0.036 314.7)

  • #1A0E01

    #1A0E01

    oklch(17.7% 0.035 72.7)

  • #001515

    #001515

    oklch(17.7% 0.03 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #170C1C

    #170C1C

    oklch(17.8% 0.036 314.7)

  • #1E0B04

    #1E0B04

    oklch(17.7% 0.037 44.1)

  • #0A1505

    #0A1505

    oklch(18% 0.036 135.6)

  • #00141C

    #00141C

    oklch(17.8% 0.034 224.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #170C1C 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.