#0C212F

Closest named color: Rich Black (#0D1B2A). oklch(23.8% 0.038 240.2), rgb(12, 33, 47).

Aa

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

About this color

#0C212F is a very dark, muted blue. In OKLCH its lightness is 24%, its chroma 0.038 and its hue 240°. 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 16.48:1.

Hue familyBlues
Lightnessvery dark (24%)
Chromamuted (0.038)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.27:1
White text16.48:1

Values

HEX#0C212F
RGBrgb(12, 33, 47)
HSLhsl(204, 59%, 12%)
OKLCHoklch(23.8% 0.038 240.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 #0C212F 16.48:1 AAA Lc -105.8 Preferred for body text
Black text on #0C212F 1.27:1 Fails Lc 0.0 Not readable
#0C212F text on white 16.48:1 AAA Lc 103.3 Preferred for body text
#0C212F text on black 1.27: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

    #F2F6F9

    oklch(97.1% 0.006 239.8)

  2. Step 100

    100

    #E2EBF2

    oklch(93.5% 0.014 241)

  3. Step 200

    200

    #CBDCE8

    oklch(88.5% 0.025 238.4)

  4. Step 300

    300

    #A7C5DB

    oklch(80.8% 0.045 239.9)

  5. Step 400

    400

    #77A7CA

    oklch(70.7% 0.073 240.7)

  6. Step 500

    500

    #5191BC

    oklch(63.2% 0.093 239.9)

  7. Step 600

    600

    #337AA8

    oklch(55.5% 0.1 240.5)

  8. Step 700

    700

    #256790

    oklch(49.2% 0.093 240)

  9. Step 800

    800

    #205475

    oklch(42.7% 0.077 240.1)

  10. Step 900

    900

    #20465E

    oklch(37.8% 0.06 238.8)

  11. Step 950

    950 (this color)

    #0C212F

    oklch(23.8% 0.038 240.2)

Export this scale for Tailwind in the Tailwind colors tool

#0C212F 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)#1B21300.021
Deuteranopia (no green cones)#161D2F0.018
Tritanopia (no blue cones)#0024260.027
Achromatopsia (no color)#1F1F1F0.038

Harmonies

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

Complementary

The opposite hue (180°).

  • #0C212F

    #0C212F

    oklch(23.8% 0.038 240.2)

  • #2C1A0B

    #2C1A0B

    oklch(23.8% 0.038 59.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #0C212F

    #0C212F

    oklch(23.8% 0.038 240.2)

  • #032429

    #032429

    oklch(24% 0.038 209.4)

  • #181E31

    #181E31

    oklch(23.9% 0.038 270)

Open the analogous palette in the generator

Split complementary

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

  • #0C212F

    #0C212F

    oklch(23.8% 0.038 240.2)

  • #2F1814

    #2F1814

    oklch(24% 0.038 30.7)

  • #261E07

    #261E07

    oklch(23.9% 0.039 90.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #0C212F

    #0C212F

    oklch(23.8% 0.038 240.2)

  • #2D171E

    #2D171E

    oklch(23.8% 0.037 359.8)

  • #1C210C

    #1C210C

    oklch(23.6% 0.037 120.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #0C212F

    #0C212F

    oklch(23.8% 0.038 240.2)

  • #291827

    #291827

    oklch(23.8% 0.038 330.9)

  • #2C1A0B

    #2C1A0B

    oklch(23.8% 0.038 59.2)

  • #112415

    #112415

    oklch(23.9% 0.038 149.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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