#38314C

Closest named color: Space Cadet (#2B2D42). oklch(33.3% 0.048 295.6), rgb(56, 49, 76).

Aa

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

About this color

#38314C is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.048 and its hue 296°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.032 away. White text reads best on it, at 12.26:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.048)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.71:1
White text12.26:1

Values

HEX#38314C
RGBrgb(56, 49, 76)
HSLhsl(256, 22%, 25%)
OKLCHoklch(33.3% 0.048 295.6)

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 #38314C 12.26:1 AAA Lc -101.4 Preferred for body text
Black text on #38314C 1.71:1 Fails Lc 0.0 Not readable
#38314C text on white 12.26:1 AAA Lc 98.0 Preferred for body text
#38314C text on black 1.71: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

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #EAE9F0

    oklch(93.7% 0.009 292.8)

  3. Step 200

    200

    #DAD7E5

    oklch(88.6% 0.019 295.8)

  4. Step 300

    300

    #C2BCD6

    oklch(80.8% 0.037 296.1)

  5. Step 400

    400

    #A39AC1

    oklch(70.7% 0.057 295.5)

  6. Step 500

    500

    #8D81B1

    oklch(63.2% 0.072 295.7)

  7. Step 600

    600

    #776A9D

    oklch(55.7% 0.079 295.4)

  8. Step 700

    700

    #645886

    oklch(49.1% 0.073 295.6)

  9. Step 800

    800

    #52486D

    oklch(42.7% 0.061 296.1)

  10. Step 900

    900 (this color)

    #38314C

    oklch(33.3% 0.048 295.6)

  11. Step 950

    950

    #272334

    oklch(26.8% 0.032 295)

Export this scale for Tailwind in the Tailwind colors tool

#38314C 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)#2A354D0.025
Deuteranopia (no green cones)#2B354B0.024
Tritanopia (no blue cones)#34353B0.038
Achromatopsia (no color)#3535350.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #38314C

    #38314C

    oklch(33.3% 0.048 295.6)

  • #35391B

    #35391B

    oklch(33.3% 0.048 115.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38314C

    #38314C

    oklch(33.3% 0.048 295.6)

  • #2A364F

    #2A364F

    oklch(33.4% 0.047 264.3)

  • #432D43

    #432D43

    oklch(33.2% 0.048 326.6)

Open the analogous palette in the generator

Split complementary

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

  • #38314C

    #38314C

    oklch(33.3% 0.048 295.6)

  • #413417

    #413417

    oklch(33.2% 0.048 85.5)

  • #263D27

    #263D27

    oklch(33.4% 0.048 145.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38314C

    #38314C

    oklch(33.3% 0.048 295.6)

  • #492F1D

    #492F1D

    oklch(33.2% 0.048 55)

  • #173E35

    #173E35

    oklch(33.3% 0.047 175.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38314C

    #38314C

    oklch(33.3% 0.048 295.6)

  • #4C2C29

    #4C2C29

    oklch(33.3% 0.048 25.7)

  • #35391B

    #35391B

    oklch(33.3% 0.048 115.3)

  • #113D42

    #113D42

    oklch(33.3% 0.048 205.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #38314C 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.