#38318C

Closest named color: Dark Slate Blue (#483D8B). oklch(37.9% 0.145 280.4), rgb(56, 49, 140).

Aa

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

About this color

#38318C is a dark, vivid purple. In OKLCH its lightness is 38%, its chroma 0.145 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.043 away. White text reads best on it, at 10.57:1.

Hue familyPurples
Lightnessdark (38%)
Chromavivid (0.145)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text1.98:1
White text10.57:1

Values

HEX#38318C
RGBrgb(56, 49, 140)
HSLhsl(245, 48%, 37%)
OKLCHoklch(37.9% 0.145 280.4)

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 #38318C 10.57:1 AAA Lc -98.1 Preferred for body text
Black text on #38318C 1.98:1 Fails Lc 9.9 Not readable
#38318C text on white 10.57:1 AAA Lc 94.1 Preferred for body text
#38318C text on black 1.98:1 Fails Lc -8.5 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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E8FF

    oklch(93.6% 0.031 279.9)

  3. Step 200

    200

    #D1D6FF

    oklch(88.5% 0.057 279.7)

  4. Step 300

    300

    #B4BAFF

    oklch(80.9% 0.098 280.1)

  5. Step 400

    400

    #9093FF

    oklch(70.8% 0.156 280.4)

  6. Step 500

    500

    #7772FF

    oklch(63% 0.203 280.4)

  7. Step 600

    600

    #634FFA

    oklch(55.6% 0.242 280.4)

  8. Step 700

    700

    #533DDA

    oklch(49.1% 0.225 280.5)

  9. Step 800

    800

    #4334B0

    oklch(42.6% 0.187 280.4)

  10. Step 900

    900 (this color)

    #38318C

    oklch(37.9% 0.145 280.4)

  11. Step 950

    950

    #201D51

    oklch(26.9% 0.092 280.8)

Export this scale for Tailwind in the Tailwind colors tool

#38318C 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)#00428F0.059
Deuteranopia (no green cones)#003B8A0.054
Tritanopia (no blue cones)#01485A0.124
Achromatopsia (no color)#3F3F3F0.146

Harmonies

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

Complementary

The opposite hue (180°).

  • #38318C

    #38318C

    oklch(37.9% 0.145 280.4)

  • #4C4300

    #4C4300

    oklch(38% 0.079 100.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38318C

    #38318C

    oklch(37.9% 0.145 280.4)

  • #004379

    #004379

    oklch(37.8% 0.109 250.7)

  • #5A227A

    #5A227A

    oklch(38% 0.146 310.4)

Open the analogous palette in the generator

Split complementary

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

  • #38318C

    #38318C

    oklch(37.9% 0.145 280.4)

  • #5D3900

    #5D3900

    oklch(37.9% 0.082 70.4)

  • #2F4C00

    #2F4C00

    oklch(37.9% 0.102 130.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38318C

    #38318C

    oklch(37.9% 0.145 280.4)

  • #732400

    #732400

    oklch(37.9% 0.119 40.1)

  • #005032

    #005032

    oklch(38.1% 0.086 159.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38318C

    #38318C

    oklch(37.9% 0.145 280.4)

  • #7C0830

    #7C0830

    oklch(37.9% 0.146 10)

  • #4C4300

    #4C4300

    oklch(38% 0.079 100.7)

  • #004D4A

    #004D4A

    oklch(37.9% 0.065 190.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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