#0C171A

Closest named color: Rich Navy (#001219). oklch(19.6% 0.017 216.7), rgb(12, 23, 26).

Aa

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

About this color

#0C171A is a very dark close to neutral grey. In OKLCH its lightness is 20%, its chroma 0.017. It has too little chroma to lean warm or cool. The nearest named color is Rich Navy (#001219), ΔE 0.030 away. White text reads best on it, at 18.21:1.

Hue familyNeutrals
Lightnessvery dark (20%)
Chromaclose to neutral grey (0.017)
Temperatureneutral
Nearest nameRich Navy (#001219)
Black text1.15:1
White text18.21:1

Values

HEX#0C171A
RGBrgb(12, 23, 26)
HSLhsl(193, 37%, 7%)
OKLCHoklch(19.6% 0.017 216.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 #0C171A 18.21:1 AAA Lc -107.0 Preferred for body text
Black text on #0C171A 1.15:1 Fails Lc 0.0 Not readable
#0C171A text on white 18.21:1 AAA Lc 104.9 Preferred for body text
#0C171A 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

    #F3F6F6

    oklch(97.1% 0.003 197.1)

  2. Step 100

    100

    #E6EBEC

    oklch(93.7% 0.006 211)

  3. Step 200

    200

    #D1DBDE

    oklch(88.5% 0.012 217.6)

  4. Step 300

    300

    #B3C4C9

    oklch(80.9% 0.02 217.3)

  5. Step 400

    400

    #8BA6AE

    oklch(70.7% 0.032 217.6)

  6. Step 500

    500

    #6D909A

    oklch(63.1% 0.042 217.2)

  7. Step 600

    600

    #557A84

    oklch(55.5% 0.044 216.4)

  8. Step 700

    700

    #456770

    oklch(49.1% 0.042 216.1)

  9. Step 800

    800

    #39545B

    oklch(42.7% 0.034 215.7)

  10. Step 900

    900

    #31454B

    oklch(37.6% 0.027 218.3)

  11. Step 950

    950 (this color)

    #0C171A

    oklch(19.6% 0.017 216.7)

Export this scale for Tailwind in the Tailwind colors tool

#0C171A 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)#15161A0.015
Deuteranopia (no green cones)#13151A0.013
Tritanopia (no blue cones)#0718180.010
Achromatopsia (no color)#1515150.017

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C171A

    #0C171A

    oklch(19.6% 0.017 216.7)

  • #1C1210

    #1C1210

    oklch(19.5% 0.017 31.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C171A

    #0C171A

    oklch(19.6% 0.017 216.7)

  • #0C1816

    #0C1816

    oklch(19.7% 0.018 182.8)

  • #0F161C

    #0F161C

    oklch(19.6% 0.016 244.6)

Open the analogous palette in the generator

Split complementary

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

  • #0C171A

    #0C171A

    oklch(19.6% 0.017 216.7)

  • #1C1214

    #1C1214

    oklch(19.6% 0.017 5.5)

  • #1A140D

    #1A140D

    oklch(19.6% 0.017 70.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C171A

    #0C171A

    oklch(19.6% 0.017 216.7)

  • #1A1218

    #1A1218

    oklch(19.5% 0.017 335.3)

  • #17150C

    #17150C

    oklch(19.5% 0.017 97.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C171A

    #0C171A

    oklch(19.6% 0.017 216.7)

  • #17131B

    #17131B

    oklch(19.5% 0.017 307.5)

  • #1C1210

    #1C1210

    oklch(19.5% 0.017 31.5)

  • #13170E

    #13170E

    oklch(19.7% 0.018 127.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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