#21246C

Closest named color: Midnight Blue (#191970). oklch(30.9% 0.123 274.8), rgb(33, 36, 108).

Aa

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

About this color

#21246C is a dark, moderately saturated blue. In OKLCH its lightness is 31%, its chroma 0.123 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.030 away. White text reads best on it, at 13.69:1.

Hue familyBlues
Lightnessdark (31%)
Chromamoderately saturated (0.123)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.53:1
White text13.69:1

Values

HEX#21246C
RGBrgb(33, 36, 108)
HSLhsl(238, 53%, 28%)
OKLCHoklch(30.9% 0.123 274.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 #21246C 13.69:1 AAA Lc -103.0 Preferred for body text
Black text on #21246C 1.53:1 Fails Lc 0.0 Not readable
#21246C text on white 13.69:1 AAA Lc 99.8 Preferred for body text
#21246C text on black 1.53: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

    #E3E9FF

    oklch(93.6% 0.03 273.6)

  3. Step 200

    200

    #CED7FF

    oklch(88.5% 0.056 275.2)

  4. Step 300

    300

    #AEBCFF

    oklch(80.9% 0.096 274.9)

  5. Step 400

    400

    #8596FF

    oklch(70.6% 0.154 274.8)

  6. Step 500

    500

    #6A78FF

    oklch(63.2% 0.198 274.8)

  7. Step 600

    600

    #5353FF

    oklch(55.6% 0.247 274.8)

  8. Step 700

    700

    #4521FF

    oklch(49.1% 0.289 274.7)

  9. Step 800

    800

    #381CD2

    oklch(42.7% 0.248 274.8)

  10. Step 900

    900

    #2D25A5

    oklch(37.8% 0.194 274.6)

  11. Step 950

    950 (this color)

    #21246C

    oklch(30.9% 0.123 274.8)

Export this scale for Tailwind in the Tailwind colors tool

#21246C 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)#00316E0.040
Deuteranopia (no green cones)#002A6B0.032
Tritanopia (no blue cones)#0036440.100
Achromatopsia (no color)#2D2D2D0.123

Harmonies

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

Complementary

The opposite hue (180°).

  • #21246C

    #21246C

    oklch(30.9% 0.123 274.8)

  • #3A2F00

    #3A2F00

    oklch(30.8% 0.063 94.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #21246C

    #21246C

    oklch(30.9% 0.123 274.8)

  • #003354

    #003354

    oklch(31% 0.077 244.4)

  • #3F1860

    #3F1860

    oklch(30.9% 0.122 305)

Open the analogous palette in the generator

Split complementary

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

  • #21246C

    #21246C

    oklch(30.9% 0.123 274.8)

  • #472700

    #472700

    oklch(30.8% 0.069 64.9)

  • #273600

    #273600

    oklch(30.8% 0.077 124.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #21246C

    #21246C

    oklch(30.9% 0.123 274.8)

  • #5B1100

    #5B1100

    oklch(31% 0.109 34.8)

  • #003B1E

    #003B1E

    oklch(30.9% 0.077 154.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #21246C

    #21246C

    oklch(30.9% 0.123 274.8)

  • #5D0128

    #5D0128

    oklch(30.9% 0.123 4.6)

  • #3A2F00

    #3A2F00

    oklch(30.8% 0.063 94.9)

  • #003933

    #003933

    oklch(30.9% 0.055 183.5)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #21246C.

Similar named colors

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

Use #21246C 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.