#38276F

Closest named color: Midnight Blue (#191970). oklch(33.7% 0.119 289.3), rgb(56, 39, 111).

Aa

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

About this color

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

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

Values

HEX#38276F
RGBrgb(56, 39, 111)
HSLhsl(254, 48%, 29%)
OKLCHoklch(33.7% 0.119 289.3)

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 #38276F 12.44:1 AAA Lc -101.4 Preferred for body text
Black text on #38276F 1.68:1 Fails Lc 0.0 Not readable
#38276F text on white 12.44:1 AAA Lc 97.9 Preferred for body text
#38276F text on black 1.68: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

    #E9E7FB

    oklch(93.5% 0.027 290.5)

  3. Step 200

    200

    #D8D4F9

    oklch(88.5% 0.051 290.3)

  4. Step 300

    300

    #BFB7F7

    oklch(80.8% 0.09 290)

  5. Step 400

    400

    #9F90F3

    oklch(70.7% 0.142 289.2)

  6. Step 500

    500

    #8A70EE

    oklch(63% 0.182 289.6)

  7. Step 600

    600

    #7555DD

    oklch(55.7% 0.198 289.2)

  8. Step 700

    700

    #6344C0

    oklch(49.2% 0.184 289.3)

  9. Step 800

    800

    #50399B

    oklch(42.7% 0.152 289.1)

  10. Step 900

    900 (this color)

    #38276F

    oklch(33.7% 0.119 289.3)

  11. Step 950

    950

    #261E48

    oklch(26.9% 0.075 289.1)

Export this scale for Tailwind in the Tailwind colors tool

#38276F 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.068
Deuteranopia (no green cones)#00326D0.067
Tritanopia (no blue cones)#2638470.097
Achromatopsia (no color)#3434340.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #38276F

    #38276F

    oklch(33.7% 0.119 289.3)

  • #3A3A00

    #3A3A00

    oklch(33.7% 0.074 109.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38276F

    #38276F

    oklch(33.7% 0.119 289.3)

  • #093373

    #093373

    oklch(33.7% 0.119 259.5)

  • #501C5D

    #501C5D

    oklch(33.7% 0.119 319)

Open the analogous palette in the generator

Split complementary

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

  • #38276F

    #38276F

    oklch(33.7% 0.119 289.3)

  • #4A3200

    #4A3200

    oklch(33.7% 0.07 79.3)

  • #124300

    #124300

    oklch(33.6% 0.107 139.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38276F

    #38276F

    oklch(33.7% 0.119 289.3)

  • #5A2600

    #5A2600

    oklch(33.7% 0.089 50)

  • #004231

    #004231

    oklch(33.7% 0.067 169)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38276F

    #38276F

    oklch(33.7% 0.119 289.3)

  • #67101D

    #67101D

    oklch(33.7% 0.119 19.1)

  • #3A3A00

    #3A3A00

    oklch(33.7% 0.074 109.8)

  • #004042

    #004042

    oklch(33.7% 0.057 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 #38276F, closest first.

Similar named colors

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

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