#38286F

Closest named color: Midnight Blue (#191970). oklch(33.9% 0.117 288.9), rgb(56, 40, 111).

Aa

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

About this color

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

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

Values

HEX#38286F
RGBrgb(56, 40, 111)
HSLhsl(254, 47%, 30%)
OKLCHoklch(33.9% 0.117 288.9)

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 #38286F 12.34:1 AAA Lc -101.3 Preferred for body text
Black text on #38286F 1.70:1 Fails Lc 0.0 Not readable
#38286F text on white 12.34:1 AAA Lc 97.8 Preferred for body text
#38286F text on black 1.70: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

    #E9E7FA

    oklch(93.5% 0.026 290.7)

  3. Step 200

    200

    #D7D5F8

    oklch(88.6% 0.048 288)

  4. Step 300

    300

    #BEB8F7

    oklch(81% 0.088 288.6)

  5. Step 400

    400

    #9E90F2

    oklch(70.6% 0.141 288.8)

  6. Step 500

    500

    #8971ED

    oklch(63.1% 0.18 289.1)

  7. Step 600

    600

    #7456DC

    oklch(55.7% 0.195 288.7)

  8. Step 700

    700

    #6245BF

    oklch(49.2% 0.182 288.8)

  9. Step 800

    800

    #50399A

    oklch(42.6% 0.151 289.3)

  10. Step 900

    900 (this color)

    #38286F

    oklch(33.9% 0.117 288.9)

  11. Step 950

    950

    #261E48

    oklch(26.9% 0.075 289.1)

Export this scale for Tailwind in the Tailwind colors tool

#38286F 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)#0036710.067
Deuteranopia (no green cones)#00336E0.066
Tritanopia (no blue cones)#2638470.096
Achromatopsia (no color)#3535350.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #38286F

    #38286F

    oklch(33.9% 0.117 288.9)

  • #3B3A00

    #3B3A00

    oklch(33.8% 0.073 108.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38286F

    #38286F

    oklch(33.9% 0.117 288.9)

  • #093473

    #093473

    oklch(33.9% 0.118 259)

  • #501D5D

    #501D5D

    oklch(33.8% 0.118 318.9)

Open the analogous palette in the generator

Split complementary

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

  • #38286F

    #38286F

    oklch(33.9% 0.117 288.9)

  • #4B3200

    #4B3200

    oklch(33.8% 0.07 78.2)

  • #134400

    #134400

    oklch(34% 0.107 139.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38286F

    #38286F

    oklch(33.9% 0.117 288.9)

  • #5B2600

    #5B2600

    oklch(33.9% 0.09 49.5)

  • #004331

    #004331

    oklch(34% 0.069 168)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38286F

    #38286F

    oklch(33.9% 0.117 288.9)

  • #67121E

    #67121E

    oklch(33.9% 0.117 19)

  • #3B3A00

    #3B3A00

    oklch(33.8% 0.073 108.7)

  • #004043

    #004043

    oklch(33.8% 0.057 200.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #38286F 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.