#212F52

Closest named color: Prussian Blue (#1D3557). oklch(31.2% 0.066 266.2), rgb(33, 47, 82).

Aa

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

About this color

#212F52 is a dark, muted blue. In OKLCH its lightness is 31%, its chroma 0.066 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.019 away. White text reads best on it, at 13.18:1.

Hue familyBlues
Lightnessdark (31%)
Chromamuted (0.066)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.59:1
White text13.18:1

Values

HEX#212F52
RGBrgb(33, 47, 82)
HSLhsl(223, 43%, 23%)
OKLCHoklch(31.2% 0.066 266.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 #212F52 13.18:1 AAA Lc -102.6 Preferred for body text
Black text on #212F52 1.59:1 Fails Lc 0.0 Not readable
#212F52 text on white 13.18:1 AAA Lc 99.4 Preferred for body text
#212F52 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

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E3EAFA

    oklch(93.6% 0.023 266.9)

  3. Step 200

    200

    #CCD9F7

    oklch(88.5% 0.044 266.9)

  4. Step 300

    300

    #A9C0F4

    oklch(80.9% 0.078 266.1)

  5. Step 400

    400

    #7C9EEF

    oklch(70.8% 0.125 266)

  6. Step 500

    500

    #5C83E9

    oklch(63.1% 0.159 266.2)

  7. Step 600

    600

    #436AD7

    oklch(55.5% 0.173 266.1)

  8. Step 700

    700

    #3658BB

    oklch(49.2% 0.161 266.3)

  9. Step 800

    800

    #2C4897

    oklch(42.6% 0.134 266.1)

  10. Step 900

    900

    #273D78

    oklch(37.6% 0.104 266.1)

  11. Step 950

    950 (this color)

    #212F52

    oklch(31.2% 0.066 266.2)

Export this scale for Tailwind in the Tailwind colors tool

#212F52 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)#2132530.009
Deuteranopia (no green cones)#1B2E510.009
Tritanopia (no blue cones)#06373C0.060
Achromatopsia (no color)#3030300.066

Harmonies

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

Complementary

The opposite hue (180°).

  • #212F52

    #212F52

    oklch(31.2% 0.066 266.2)

  • #3F2E00

    #3F2E00

    oklch(31.2% 0.064 86.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #212F52

    #212F52

    oklch(31.2% 0.066 266.2)

  • #02354D

    #02354D

    oklch(31.1% 0.065 235.9)

  • #34294E

    #34294E

    oklch(31.2% 0.066 296.1)

Open the analogous palette in the generator

Split complementary

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

  • #212F52

    #212F52

    oklch(31.2% 0.066 266.2)

  • #49270A

    #49270A

    oklch(31.2% 0.065 56.9)

  • #2F3506

    #2F3506

    oklch(31.3% 0.066 116.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #212F52

    #212F52

    oklch(31.2% 0.066 266.2)

  • #4D221E

    #4D221E

    oklch(31.2% 0.066 27)

  • #17391B

    #17391B

    oklch(31% 0.066 146.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #212F52

    #212F52

    oklch(31.2% 0.066 266.2)

  • #4A2132

    #4A2132

    oklch(31.1% 0.066 355.5)

  • #3F2E00

    #3F2E00

    oklch(31.2% 0.064 86.4)

  • #003A30

    #003A30

    oklch(31.2% 0.058 176.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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