#0C1731

Closest named color: Rich Black (#0D1B2A). oklch(21.1% 0.054 264.9), rgb(12, 23, 49).

Aa

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

About this color

#0C1731 is a very dark, muted blue. In OKLCH its lightness is 21%, its chroma 0.054 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.022 away. White text reads best on it, at 17.75:1.

Hue familyBlues
Lightnessvery dark (21%)
Chromamuted (0.054)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.18:1
White text17.75:1

Values

HEX#0C1731
RGBrgb(12, 23, 49)
HSLhsl(222, 61%, 12%)
OKLCHoklch(21.1% 0.054 264.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 #0C1731 17.75:1 AAA Lc -106.7 Preferred for body text
Black text on #0C1731 1.18:1 Fails Lc 0.0 Not readable
#0C1731 text on white 17.75:1 AAA Lc 104.4 Preferred for body text
#0C1731 text on black 1.18: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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F1

    oklch(88.4% 0.035 266)

  4. Step 300

    300

    #ADC1EB

    oklch(81% 0.064 265)

  5. Step 400

    400

    #819FE1

    oklch(70.6% 0.103 265.1)

  6. Step 500

    500

    #6286D8

    oklch(63% 0.131 265)

  7. Step 600

    600

    #4A6EC6

    oklch(55.6% 0.143 265.3)

  8. Step 700

    700

    #3B5CAB

    oklch(49.2% 0.132 264.9)

  9. Step 800

    800

    #314B8A

    oklch(42.6% 0.109 265.2)

  10. Step 900

    900

    #2B3F6F

    oklch(37.6% 0.086 265.4)

  11. Step 950

    950 (this color)

    #0C1731

    oklch(21.1% 0.054 264.9)

Export this scale for Tailwind in the Tailwind colors tool

#0C1731 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)#0B1A320.010
Deuteranopia (no green cones)#0616300.010
Tritanopia (no blue cones)#001D210.046
Achromatopsia (no color)#1818180.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C1731

    #0C1731

    oklch(21.1% 0.054 264.9)

  • #221700

    #221700

    oklch(21.3% 0.044 85.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C1731

    #0C1731

    oklch(21.1% 0.054 264.9)

  • #001B2A

    #001B2A

    oklch(21% 0.045 235.9)

  • #1B122E

    #1B122E

    oklch(21% 0.054 296.3)

Open the analogous palette in the generator

Split complementary

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

  • #0C1731

    #0C1731

    oklch(21.1% 0.054 264.9)

  • #2A1100

    #2A1100

    oklch(21.2% 0.052 56)

  • #181B00

    #181B00

    oklch(21.2% 0.048 115.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C1731

    #0C1731

    oklch(21.1% 0.054 264.9)

  • #2D0D0B

    #2D0D0B

    oklch(21.2% 0.053 26.2)

  • #061F07

    #061F07

    oklch(21.2% 0.055 144.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C1731

    #0C1731

    oklch(21.1% 0.054 264.9)

  • #2B0C1A

    #2B0C1A

    oklch(21.1% 0.055 354.6)

  • #221700

    #221700

    oklch(21.3% 0.044 85.3)

  • #001E17

    #001E17

    oklch(21% 0.04 174.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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