#212D5B

Closest named color: Prussian Blue (#1D3557). oklch(31.3% 0.083 270), rgb(33, 45, 91).

Aa

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

About this color

#212D5B is a dark, moderately saturated blue. In OKLCH its lightness is 31%, its chroma 0.083 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.027 away. White text reads best on it, at 13.19:1.

Hue familyBlues
Lightnessdark (31%)
Chromamoderately saturated (0.083)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.59:1
White text13.19:1

Values

HEX#212D5B
RGBrgb(33, 45, 91)
HSLhsl(228, 47%, 24%)
OKLCHoklch(31.3% 0.083 270)

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 #212D5B 13.19:1 AAA Lc -102.6 Preferred for body text
Black text on #212D5B 1.59:1 Fails Lc 0.0 Not readable
#212D5B text on white 13.19:1 AAA Lc 99.4 Preferred for body text
#212D5B text on black 1.59: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

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E2E9FE

    oklch(93.5% 0.029 271.1)

  3. Step 200

    200

    #CBD8FE

    oklch(88.5% 0.054 270.4)

  4. Step 300

    300

    #A8BEFF

    oklch(80.9% 0.096 269.8)

  5. Step 400

    400

    #7C99FF

    oklch(70.6% 0.153 270.2)

  6. Step 500

    500

    #5D7CFF

    oklch(63.2% 0.197 269.9)

  7. Step 600

    600

    #465FF1

    oklch(55.6% 0.219 270.1)

  8. Step 700

    700

    #384DD2

    oklch(49.1% 0.204 270)

  9. Step 800

    800

    #2E40AA

    oklch(42.7% 0.17 270.1)

  10. Step 900

    900

    #283886

    oklch(37.7% 0.132 270.1)

  11. Step 950

    950 (this color)

    #212D5B

    oklch(31.3% 0.083 270)

Export this scale for Tailwind in the Tailwind colors tool

#212D5B 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)#17335D0.020
Deuteranopia (no green cones)#0E2E5A0.021
Tritanopia (no blue cones)#00373F0.073
Achromatopsia (no color)#3030300.084

Harmonies

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

Complementary

The opposite hue (180°).

  • #212D5B

    #212D5B

    oklch(31.3% 0.083 270)

  • #3E2F00

    #3E2F00

    oklch(31.3% 0.064 89.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #212D5B

    #212D5B

    oklch(31.3% 0.083 270)

  • #003551

    #003551

    oklch(31.3% 0.071 239.4)

  • #382555

    #382555

    oklch(31.3% 0.085 299.8)

Open the analogous palette in the generator

Split complementary

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

  • #212D5B

    #212D5B

    oklch(31.3% 0.083 270)

  • #4B2600

    #4B2600

    oklch(31.2% 0.073 59.8)

  • #2D3600

    #2D3600

    oklch(31.3% 0.074 119.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #212D5B

    #212D5B

    oklch(31.3% 0.083 270)

  • #541D16

    #541D16

    oklch(31.4% 0.084 29.8)

  • #033C18

    #033C18

    oklch(31.2% 0.083 149.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #212D5B

    #212D5B

    oklch(31.3% 0.083 270)

  • #511B2F

    #511B2F

    oklch(31.2% 0.084 0.1)

  • #3E2F00

    #3E2F00

    oklch(31.3% 0.064 89.4)

  • #003A32

    #003A32

    oklch(31.2% 0.057 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 #212D5B, closest first.

Similar named colors

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

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