#212D40

Closest named color: Space Cadet (#2B2D42). oklch(29.5% 0.039 259.4), rgb(33, 45, 64).

Aa

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

About this color

#212D40 is a dark, muted blue. In OKLCH its lightness is 30%, its chroma 0.039 and its hue 259°. Its hue sits on the cool side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.017 away. White text reads best on it, at 13.87:1.

Hue familyBlues
Lightnessdark (30%)
Chromamuted (0.039)
Temperaturecool
Nearest nameSpace Cadet (#2B2D42)
Black text1.51:1
White text13.87:1

Values

HEX#212D40
RGBrgb(33, 45, 64)
HSLhsl(217, 32%, 19%)
OKLCHoklch(29.5% 0.039 259.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 #212D40 13.87:1 AAA Lc -103.5 Preferred for body text
Black text on #212D40 1.51:1 Fails Lc 0.0 Not readable
#212D40 text on white 13.87:1 AAA Lc 100.4 Preferred for body text
#212D40 text on black 1.51: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

    #F3F6FA

    oklch(97.2% 0.006 255.5)

  2. Step 100

    100

    #E5EAF3

    oklch(93.6% 0.013 262.4)

  3. Step 200

    200

    #CFDAEA

    oklch(88.5% 0.025 257.6)

  4. Step 300

    300

    #AFC2DF

    oklch(80.9% 0.046 258.8)

  5. Step 400

    400

    #86A2CF

    oklch(70.8% 0.073 259.8)

  6. Step 500

    500

    #678AC2

    oklch(63% 0.094 259.5)

  7. Step 600

    600

    #4E73AE

    oklch(55.4% 0.102 259.4)

  8. Step 700

    700

    #3F6196

    oklch(49.2% 0.094 259)

  9. Step 800

    800

    #344F7A

    oklch(42.7% 0.079 259.4)

  10. Step 900

    900

    #2E4262

    oklch(37.8% 0.061 259.5)

  11. Step 950

    950 (this color)

    #212D40

    oklch(29.5% 0.039 259.4)

Export this scale for Tailwind in the Tailwind colors tool

#212D40 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)#262E410.009
Deuteranopia (no green cones)#232B400.007
Tritanopia (no blue cones)#1631340.033
Achromatopsia (no color)#2C2C2C0.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #212D40

    #212D40

    oklch(29.5% 0.039 259.4)

  • #372A15

    #372A15

    oklch(29.4% 0.039 78.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #212D40

    #212D40

    oklch(29.5% 0.039 259.4)

  • #16303C

    #16303C

    oklch(29.4% 0.039 229.9)

  • #2C293F

    #2C293F

    oklch(29.4% 0.04 290)

Open the analogous palette in the generator

Split complementary

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

  • #212D40

    #212D40

    oklch(29.5% 0.039 259.4)

  • #3C271B

    #3C271B

    oklch(29.5% 0.038 50.5)

  • #2E2E17

    #2E2E17

    oklch(29.5% 0.038 108.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #212D40

    #212D40

    oklch(29.5% 0.039 259.4)

  • #3E2525

    #3E2525

    oklch(29.6% 0.038 19.6)

  • #22311F

    #22311F

    oklch(29.4% 0.038 140.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #212D40

    #212D40

    oklch(29.5% 0.039 259.4)

  • #3B2530

    #3B2530

    oklch(29.6% 0.038 348.2)

  • #372A15

    #372A15

    oklch(29.4% 0.039 78.4)

  • #173329

    #173329

    oklch(29.5% 0.039 168.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #212D40 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.