#332572

Closest named color: Midnight Blue (#191970). oklch(33.1% 0.126 285.5), rgb(51, 37, 114).

Aa

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

About this color

#332572 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.126 and its hue 286°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.055 away. White text reads best on it, at 12.73:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.126)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.64:1
White text12.73:1

Values

HEX#332572
RGBrgb(51, 37, 114)
HSLhsl(251, 51%, 30%)
OKLCHoklch(33.1% 0.126 285.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 #332572 12.73:1 AAA Lc -101.8 Preferred for body text
Black text on #332572 1.64:1 Fails Lc 0.0 Not readable
#332572 text on white 12.73:1 AAA Lc 98.4 Preferred for body text
#332572 text on black 1.64: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 900.

  1. Step 50

    50

    #F4F4FE

    oklch(97% 0.013 286.1)

  2. Step 100

    100

    #E8E8FC

    oklch(93.7% 0.027 285.9)

  3. Step 200

    200

    #D5D5FB

    oklch(88.5% 0.052 285.3)

  4. Step 300

    300

    #BAB8FC

    oklch(80.9% 0.095 285.4)

  5. Step 400

    400

    #9990FA

    oklch(70.6% 0.152 285.7)

  6. Step 500

    500

    #8370F7

    oklch(63.1% 0.194 285.8)

  7. Step 600

    600

    #6E54E6

    oklch(55.6% 0.211 285.4)

  8. Step 700

    700

    #5D43C8

    oklch(49.1% 0.196 285.6)

  9. Step 800

    800

    #4B38A2

    oklch(42.7% 0.163 285.4)

  10. Step 900

    900 (this color)

    #332572

    oklch(33.1% 0.126 285.5)

  11. Step 950

    950

    #241E4B

    oklch(26.9% 0.08 285.8)

Export this scale for Tailwind in the Tailwind colors tool

#332572 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)#0035740.062
Deuteranopia (no green cones)#0030700.059
Tritanopia (no blue cones)#1A38480.104
Achromatopsia (no color)#3232320.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #332572

    #332572

    oklch(33.1% 0.126 285.5)

  • #3B3700

    #3B3700

    oklch(33% 0.07 105.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332572

    #332572

    oklch(33.1% 0.126 285.5)

  • #00346D

    #00346D

    oklch(33.2% 0.111 255.5)

  • #4D1960

    #4D1960

    oklch(33.1% 0.125 315.5)

Open the analogous palette in the generator

Split complementary

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

  • #332572

    #332572

    oklch(33.1% 0.126 285.5)

  • #4A3000

    #4A3000

    oklch(33.2% 0.07 76.2)

  • #1C4000

    #1C4000

    oklch(33.1% 0.098 135.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332572

    #332572

    oklch(33.1% 0.126 285.5)

  • #5B2200

    #5B2200

    oklch(33.2% 0.094 45.8)

  • #00412D

    #00412D

    oklch(33.3% 0.07 165.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332572

    #332572

    oklch(33.1% 0.126 285.5)

  • #67061F

    #67061F

    oklch(33.1% 0.126 15.4)

  • #3B3700

    #3B3700

    oklch(33% 0.07 105.1)

  • #003E3F

    #003E3F

    oklch(33% 0.056 196.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #332572 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.