#382971

Closest named color: Midnight Blue (#191970). oklch(34.2% 0.119 288), rgb(56, 41, 113).

Aa

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

About this color

#382971 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.119 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.069 away. White text reads best on it, at 12.18:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.119)
Temperaturecool
Nearest nameMidnight Blue (#191970)
Black text1.72:1
White text12.18:1

Values

HEX#382971
RGBrgb(56, 41, 113)
HSLhsl(252, 47%, 30%)
OKLCHoklch(34.2% 0.119 288)

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 #382971 12.18:1 AAA Lc -101.0 Preferred for body text
Black text on #382971 1.72:1 Fails Lc 0.0 Not readable
#382971 text on white 12.18:1 AAA Lc 97.5 Preferred for body text
#382971 text on black 1.72: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

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E8E8FB

    oklch(93.7% 0.026 285.9)

  3. Step 200

    200

    #D7D5F9

    oklch(88.6% 0.049 287.9)

  4. Step 300

    300

    #BDB8F7

    oklch(80.9% 0.088 287.9)

  5. Step 400

    400

    #9D90F4

    oklch(70.6% 0.144 288.1)

  6. Step 500

    500

    #8771EF

    oklch(63% 0.182 288)

  7. Step 600

    600

    #7356DE

    oklch(55.7% 0.198 288)

  8. Step 700

    700

    #6145C0

    oklch(49.2% 0.183 288.2)

  9. Step 800

    800

    #4F3A9C

    oklch(42.9% 0.152 288.1)

  10. Step 900

    900 (this color)

    #382971

    oklch(34.2% 0.119 288)

  11. Step 950

    950

    #261E48

    oklch(26.9% 0.075 289.1)

Export this scale for Tailwind in the Tailwind colors tool

#382971 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)#0037730.066
Deuteranopia (no green cones)#00346F0.065
Tritanopia (no blue cones)#253A480.099
Achromatopsia (no color)#3535350.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #382971

    #382971

    oklch(34.2% 0.119 288)

  • #3C3B00

    #3C3B00

    oklch(34.2% 0.074 108.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #382971

    #382971

    oklch(34.2% 0.119 288)

  • #063574

    #063574

    oklch(34.1% 0.119 258.1)

  • #511E5F

    #511E5F

    oklch(34.2% 0.119 318.3)

Open the analogous palette in the generator

Split complementary

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

  • #382971

    #382971

    oklch(34.2% 0.119 288)

  • #4C3300

    #4C3300

    oklch(34.2% 0.071 78.6)

  • #174400

    #174400

    oklch(34.2% 0.106 138)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #382971

    #382971

    oklch(34.2% 0.119 288)

  • #5D2600

    #5D2600

    oklch(34.2% 0.092 48.5)

  • #004431

    #004431

    oklch(34.3% 0.07 167.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #382971

    #382971

    oklch(34.2% 0.119 288)

  • #681220

    #681220

    oklch(34.1% 0.118 17.8)

  • #3C3B00

    #3C3B00

    oklch(34.2% 0.074 108.7)

  • #004143

    #004143

    oklch(34.1% 0.058 198.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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