#21578E

Closest named color: Dusk Blue (#26538D). oklch(45% 0.107 251.8), rgb(33, 87, 142).

Aa

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

About this color

#21578E is a dark, moderately saturated blue. In OKLCH its lightness is 45%, its chroma 0.107 and its hue 252°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.011 away. White text reads best on it, at 7.45:1.

Hue familyBlues
Lightnessdark (45%)
Chromamoderately saturated (0.107)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.81:1
White text7.45:1

Values

HEX#21578E
RGBrgb(33, 87, 142)
HSLhsl(210, 62%, 34%)
OKLCHoklch(45% 0.107 251.8)

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 #21578E 7.45:1 AAA Lc -90.4 Preferred for body text
Black text on #21578E 2.81:1 Fails Lc 18.5 Dividers and decoration only
#21578E text on white 7.45:1 AAA Lc 85.6 Fine for body text
#21578E text on black 2.81:1 Fails Lc -16.5 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F1F6FB

    oklch(97.1% 0.009 247.9)

  2. Step 100

    100

    #E1EBF6

    oklch(93.6% 0.018 250.6)

  3. Step 200

    200

    #C9DBF0

    oklch(88.4% 0.035 252.3)

  4. Step 300

    300

    #A4C4E8

    oklch(80.9% 0.062 251.6)

  5. Step 400

    400

    #71A5DD

    oklch(70.8% 0.099 251.1)

  6. Step 500

    500

    #4A8DD4

    oklch(63.2% 0.127 251.7)

  7. Step 600

    600

    #2A75C1

    oklch(55.5% 0.139 252.1)

  8. Step 700

    700

    #1B62A7

    oklch(49% 0.13 252)

  9. Step 800

    800 (this color)

    #21578E

    oklch(45% 0.107 251.8)

  10. Step 900

    900

    #1C436C

    oklch(37.7% 0.083 251.9)

  11. Step 950

    950

    #11283F

    oklch(27.1% 0.052 250.3)

Export this scale for Tailwind in the Tailwind colors tool

#21578E 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)#3D5B900.031
Deuteranopia (no green cones)#2D508D0.021
Tritanopia (no blue cones)#00646B0.081
Achromatopsia (no color)#5555550.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #21578E

    #21578E

    oklch(45% 0.107 251.8)

  • #764B00

    #764B00

    oklch(45.1% 0.097 71.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #21578E

    #21578E

    oklch(45% 0.107 251.8)

  • #005F76

    #005F76

    oklch(45% 0.083 221.8)

  • #4D4C8E

    #4D4C8E

    oklch(45% 0.106 282)

Open the analogous palette in the generator

Split complementary

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

  • #21578E

    #21578E

    oklch(45% 0.107 251.8)

  • #853E20

    #853E20

    oklch(45.1% 0.107 42.2)

  • #605600

    #605600

    oklch(44.9% 0.094 101.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #21578E

    #21578E

    oklch(45% 0.107 251.8)

  • #853845

    #853845

    oklch(44.9% 0.106 12)

  • #3E6119

    #3E6119

    oklch(45% 0.107 131.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #21578E

    #21578E

    oklch(45% 0.107 251.8)

  • #7C3A66

    #7C3A66

    oklch(45% 0.108 341.7)

  • #764B00

    #764B00

    oklch(45.1% 0.097 71.9)

  • #006644

    #006644

    oklch(45.1% 0.099 161.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #21578E 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.