#332270

Closest named color: Midnight Blue (#191970). oklch(32.4% 0.128 287), rgb(51, 34, 112).

Aa

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

About this color

#332270 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.128 and its hue 287°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.052 away. White text reads best on it, at 13.09:1.

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.128)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.60:1
White text13.09:1

Values

HEX#332270
RGBrgb(51, 34, 112)
HSLhsl(253, 53%, 29%)
OKLCHoklch(32.4% 0.128 287)

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 #332270 13.09:1 AAA Lc -102.2 Preferred for body text
Black text on #332270 1.60:1 Fails Lc 0.0 Not readable
#332270 text on white 13.09:1 AAA Lc 98.9 Preferred for body text
#332270 text on black 1.60: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

    #E8E7FC

    oklch(93.5% 0.028 288)

  3. Step 200

    200

    #D6D5FB

    oklch(88.6% 0.052 286.5)

  4. Step 300

    300

    #BCB8FC

    oklch(81% 0.095 286.8)

  5. Step 400

    400

    #9B8FFA

    oklch(70.6% 0.153 286.9)

  6. Step 500

    500

    #866FF7

    oklch(63.1% 0.195 287.2)

  7. Step 600

    600

    #7152E6

    oklch(55.5% 0.213 286.9)

  8. Step 700

    700

    #5F41C8

    oklch(49% 0.198 286.8)

  9. Step 800

    800

    #4E37A2

    oklch(42.8% 0.164 287.2)

  10. Step 900

    900 (this color)

    #332270

    oklch(32.4% 0.128 287)

  11. Step 950

    950

    #251E4B

    oklch(27% 0.08 286.9)

Export this scale for Tailwind in the Tailwind colors tool

#332270 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)#0032720.064
Deuteranopia (no green cones)#002E6E0.062
Tritanopia (no blue cones)#1C35460.103
Achromatopsia (no color)#3131310.128

Harmonies

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

Complementary

The opposite hue (180°).

  • #332270

    #332270

    oklch(32.4% 0.128 287)

  • #383600

    #383600

    oklch(32.4% 0.07 107.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332270

    #332270

    oklch(32.4% 0.128 287)

  • #00316D

    #00316D

    oklch(32.4% 0.115 257)

  • #4D155E

    #4D155E

    oklch(32.5% 0.129 317.1)

Open the analogous palette in the generator

Split complementary

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

  • #332270

    #332270

    oklch(32.4% 0.128 287)

  • #472E00

    #472E00

    oklch(32.3% 0.068 76.3)

  • #173E00

    #173E00

    oklch(32.3% 0.098 137.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332270

    #332270

    oklch(32.4% 0.128 287)

  • #572200

    #572200

    oklch(32.5% 0.089 47.5)

  • #003E2D

    #003E2D

    oklch(32.3% 0.066 167.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332270

    #332270

    oklch(32.4% 0.128 287)

  • #66021B

    #66021B

    oklch(32.5% 0.128 17)

  • #383600

    #383600

    oklch(32.4% 0.07 107.4)

  • #003C3E

    #003C3E

    oklch(32.3% 0.055 198.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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