#0C1231

Closest named color: Rich Black (#0D1B2A). oklch(19.8% 0.062 271.4), rgb(12, 18, 49).

Aa

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

About this color

#0C1231 is a very dark, muted blue. In OKLCH its lightness is 20%, its chroma 0.062 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.037 away. White text reads best on it, at 18.31:1.

Hue familyBlues
Lightnessvery dark (20%)
Chromamuted (0.062)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.14:1
White text18.31:1

Values

HEX#0C1231
RGBrgb(12, 18, 49)
HSLhsl(230, 61%, 12%)
OKLCHoklch(19.8% 0.062 271.4)

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 #0C1231 18.31:1 AAA Lc -107.0 Preferred for body text
Black text on #0C1231 1.14:1 Fails Lc 0.0 Not readable
#0C1231 text on white 18.31:1 AAA Lc 104.8 Preferred for body text
#0C1231 text on black 1.14: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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4E9F9

    oklch(93.5% 0.022 272.1)

  3. Step 200

    200

    #CFD8F5

    oklch(88.4% 0.041 271.9)

  4. Step 300

    300

    #AFBFF1

    oklch(81% 0.073 270.9)

  5. Step 400

    400

    #869CEA

    oklch(70.8% 0.117 271.2)

  6. Step 500

    500

    #6981E3

    oklch(63.1% 0.15 271.2)

  7. Step 600

    600

    #5368D1

    oklch(55.6% 0.163 271.6)

  8. Step 700

    700

    #4356B5

    oklch(49.1% 0.151 271.3)

  9. Step 800

    800

    #374793

    oklch(42.7% 0.126 271.2)

  10. Step 900

    900

    #2F3C75

    oklch(37.6% 0.098 271.3)

  11. Step 950

    950 (this color)

    #0C1231

    oklch(19.8% 0.062 271.4)

Export this scale for Tailwind in the Tailwind colors tool

#0C1231 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)#0216320.017
Deuteranopia (no green cones)#0013300.019
Tritanopia (no blue cones)#00191F0.051
Achromatopsia (no color)#1515150.062

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C1231

    #0C1231

    oklch(19.8% 0.062 271.4)

  • #1C1500

    #1C1500

    oklch(19.9% 0.041 93.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C1231

    #0C1231

    oklch(19.8% 0.062 271.4)

  • #001728

    #001728

    oklch(19.6% 0.046 241.9)

  • #1B0D2C

    #1B0D2C

    oklch(19.8% 0.061 302)

Open the analogous palette in the generator

Split complementary

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

  • #0C1231

    #0C1231

    oklch(19.8% 0.062 271.4)

  • #241000

    #241000

    oklch(19.9% 0.046 61.8)

  • #121900

    #121900

    oklch(19.9% 0.049 122.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C1231

    #0C1231

    oklch(19.8% 0.062 271.4)

  • #2C0703

    #2C0703

    oklch(19.8% 0.063 32)

  • #001C08

    #001C08

    oklch(19.8% 0.053 150.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C1231

    #0C1231

    oklch(19.8% 0.062 271.4)

  • #2A0614

    #2A0614

    oklch(19.7% 0.062 0.3)

  • #1C1500

    #1C1500

    oklch(19.9% 0.041 93.2)

  • #001B17

    #001B17

    oklch(19.9% 0.036 181.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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