#212D57

Closest named color: Prussian Blue (#1D3557). oklch(31% 0.077 269.5), rgb(33, 45, 87).

Aa

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

About this color

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

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

Values

HEX#212D57
RGBrgb(33, 45, 87)
HSLhsl(227, 45%, 24%)
OKLCHoklch(31% 0.077 269.5)

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 #212D57 13.31:1 AAA Lc -102.8 Preferred for body text
Black text on #212D57 1.57:1 Fails Lc 0.0 Not readable
#212D57 text on white 13.31:1 AAA Lc 99.6 Preferred for body text
#212D57 text on black 1.57: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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E3EAFC

    oklch(93.7% 0.025 268.8)

  3. Step 200

    200

    #CCD8FC

    oklch(88.5% 0.051 270.8)

  4. Step 300

    300

    #A9BEFC

    oklch(80.8% 0.091 269.8)

  5. Step 400

    400

    #7D9AFB

    oklch(70.7% 0.146 269.8)

  6. Step 500

    500

    #5E7EF9

    oklch(63.2% 0.186 269.5)

  7. Step 600

    600

    #4763E8

    oklch(55.7% 0.203 269.6)

  8. Step 700

    700

    #3951C9

    oklch(49.1% 0.188 269.5)

  9. Step 800

    800

    #2F43A3

    oklch(42.7% 0.156 269.6)

  10. Step 900

    900

    #293A81

    oklch(37.7% 0.121 269.6)

  11. Step 950

    950 (this color)

    #212D57

    oklch(31% 0.077 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#212D57 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)#1A32590.016
Deuteranopia (no green cones)#132D560.017
Tritanopia (no blue cones)#00363D0.069
Achromatopsia (no color)#2F2F2F0.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #212D57

    #212D57

    oklch(31% 0.077 269.5)

  • #3D2E00

    #3D2E00

    oklch(31% 0.063 89.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #212D57

    #212D57

    oklch(31% 0.077 269.5)

  • #003450

    #003450

    oklch(31% 0.071 239.8)

  • #362651

    #362651

    oklch(31% 0.076 299.1)

Open the analogous palette in the generator

Split complementary

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

  • #212D57

    #212D57

    oklch(31% 0.077 269.5)

  • #4B2600

    #4B2600

    oklch(31.2% 0.073 59.8)

  • #2C3500

    #2C3500

    oklch(30.9% 0.073 119.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #212D57

    #212D57

    oklch(31% 0.077 269.5)

  • #501E18

    #501E18

    oklch(30.9% 0.077 29.1)

  • #0A3B19

    #0A3B19

    oklch(31.1% 0.078 149.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #212D57

    #212D57

    oklch(31% 0.077 269.5)

  • #4E1D2F

    #4E1D2F

    oklch(31% 0.077 359.6)

  • #3D2E00

    #3D2E00

    oklch(31% 0.063 89.1)

  • #003931

    #003931

    oklch(30.9% 0.056 180)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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