#0C171C

Closest named color: Rich Black (#0D1B2A). oklch(19.7% 0.019 228.2), rgb(12, 23, 28).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (20%)
Chromaclose to neutral grey (0.019)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.15:1
White text18.18:1

Values

HEX#0C171C
RGBrgb(12, 23, 28)
HSLhsl(199, 40%, 8%)
OKLCHoklch(19.7% 0.019 228.2)

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 #0C171C 18.18:1 AAA Lc -107.0 Preferred for body text
Black text on #0C171C 1.15:1 Fails Lc 0.0 Not readable
#0C171C text on white 18.18:1 AAA Lc 104.9 Preferred for body text
#0C171C text on black 1.15: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

    #F3F6F7

    oklch(97.1% 0.003 219.5)

  2. Step 100

    100

    #E6EBED

    oklch(93.7% 0.006 223.5)

  3. Step 200

    200

    #D1DBE0

    oklch(88.5% 0.013 228.9)

  4. Step 300

    300

    #B3C4CC

    oklch(81% 0.022 227.6)

  5. Step 400

    400

    #8AA5B2

    oklch(70.6% 0.036 228.6)

  6. Step 500

    500

    #6D8F9F

    oklch(63% 0.045 228.4)

  7. Step 600

    600

    #54798A

    oklch(55.5% 0.049 228.3)

  8. Step 700

    700

    #446676

    oklch(49.1% 0.047 229.1)

  9. Step 800

    800

    #395360

    oklch(42.7% 0.038 230.4)

  10. Step 900

    900

    #31454E

    oklch(37.7% 0.029 227.5)

  11. Step 950

    950 (this color)

    #0C171C

    oklch(19.7% 0.019 228.2)

Export this scale for Tailwind in the Tailwind colors tool

#0C171C 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)#14171C0.013
Deuteranopia (no green cones)#12151C0.012
Tritanopia (no blue cones)#0618190.012
Achromatopsia (no color)#1515150.019

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C171C

    #0C171C

    oklch(19.7% 0.019 228.2)

  • #1C130E

    #1C130E

    oklch(19.7% 0.018 50.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C171C

    #0C171C

    oklch(19.7% 0.019 228.2)

  • #0B1818

    #0B1818

    oklch(19.7% 0.018 195.8)

  • #10161E

    #10161E

    oklch(19.8% 0.019 255.7)

Open the analogous palette in the generator

Split complementary

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

  • #0C171C

    #0C171C

    oklch(19.7% 0.019 228.2)

  • #1D1212

    #1D1212

    oklch(19.7% 0.018 18.9)

  • #1A140B

    #1A140B

    oklch(19.6% 0.019 77.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C171C

    #0C171C

    oklch(19.7% 0.019 228.2)

  • #1C1217

    #1C1217

    oklch(19.7% 0.019 347.5)

  • #16160C

    #16160C

    oklch(19.7% 0.019 108)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C171C

    #0C171C

    oklch(19.7% 0.019 228.2)

  • #19131B

    #19131B

    oklch(19.8% 0.018 317.6)

  • #1C130E

    #1C130E

    oklch(19.7% 0.018 50.4)

  • #11170F

    #11170F

    oklch(19.5% 0.018 137.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #0C171C 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.