#12182C

Closest named color: Rich Black (#0D1B2A). oklch(21.4% 0.041 270.1), rgb(18, 24, 44).

Aa

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

About this color

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

Hue familyBlues
Lightnessvery dark (21%)
Chromamuted (0.041)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.19:1
White text17.60:1

Values

HEX#12182C
RGBrgb(18, 24, 44)
HSLhsl(226, 42%, 12%)
OKLCHoklch(21.4% 0.041 270.1)

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 #12182C 17.60:1 AAA Lc -106.6 Preferred for body text
Black text on #12182C 1.19:1 Fails Lc 0.0 Not readable
#12182C text on white 17.60:1 AAA Lc 104.4 Preferred for body text
#12182C text on black 1.19: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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E6EAF3

    oklch(93.7% 0.013 266.7)

  3. Step 200

    200

    #D2D9EB

    oklch(88.5% 0.026 268.8)

  4. Step 300

    300

    #B4C0E1

    oklch(80.9% 0.049 269.5)

  5. Step 400

    400

    #8E9FD1

    oklch(70.8% 0.076 269.9)

  6. Step 500

    500

    #7286C5

    oklch(63% 0.098 270)

  7. Step 600

    600

    #5B6FB2

    oklch(55.6% 0.107 270.1)

  8. Step 700

    700

    #4B5D99

    oklch(49.2% 0.099 269.9)

  9. Step 800

    800

    #3E4C7C

    oklch(42.8% 0.082 270.3)

  10. Step 900

    900

    #344064

    oklch(37.8% 0.064 269.2)

  11. Step 950

    950 (this color)

    #12182C

    oklch(21.4% 0.041 270.1)

Export this scale for Tailwind in the Tailwind colors tool

#12182C 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)#101A2D0.007
Deuteranopia (no green cones)#0E182C0.006
Tritanopia (no blue cones)#081C1F0.037
Achromatopsia (no color)#1919190.041

Harmonies

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

Complementary

The opposite hue (180°).

  • #12182C

    #12182C

    oklch(21.4% 0.041 270.1)

  • #211802

    #211802

    oklch(21.5% 0.04 88.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #12182C

    #12182C

    oklch(21.4% 0.041 270.1)

  • #051B2A

    #051B2A

    oklch(21.3% 0.041 241.3)

  • #1C1529

    #1C1529

    oklch(21.5% 0.039 299.2)

Open the analogous palette in the generator

Split complementary

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

  • #12182C

    #12182C

    oklch(21.4% 0.041 270.1)

  • #271405

    #271405

    oklch(21.4% 0.041 58)

  • #171C05

    #171C05

    oklch(21.5% 0.041 119.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #12182C

    #12182C

    oklch(21.4% 0.041 270.1)

  • #29110E

    #29110E

    oklch(21.3% 0.041 28.4)

  • #0A1E0F

    #0A1E0F

    oklch(21.3% 0.039 150.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #12182C

    #12182C

    oklch(21.4% 0.041 270.1)

  • #281118

    #281118

    oklch(21.4% 0.04 1.5)

  • #211802

    #211802

    oklch(21.5% 0.04 88.1)

  • #001F1A

    #001F1A

    oklch(21.4% 0.039 180.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #12182C 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.