#38317B

Closest named color: Dark Slate Blue (#483D8B). oklch(36.5% 0.121 282.9), rgb(56, 49, 123).

Aa

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

About this color

#38317B is a dark, moderately saturated purple. In OKLCH its lightness is 37%, its chroma 0.121 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.050 away. White text reads best on it, at 11.09:1.

Hue familyPurples
Lightnessdark (37%)
Chromamoderately saturated (0.121)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text1.89:1
White text11.09:1

Values

HEX#38317B
RGBrgb(56, 49, 123)
HSLhsl(246, 43%, 34%)
OKLCHoklch(36.5% 0.121 282.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 #38317B 11.09:1 AAA Lc -99.2 Preferred for body text
Black text on #38317B 1.89:1 Fails Lc 8.6 Not readable
#38317B text on white 11.09:1 AAA Lc 95.3 Preferred for body text
#38317B text on black 1.89:1 Fails Lc -7.3 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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E7E8FC

    oklch(93.6% 0.027 283.6)

  3. Step 200

    200

    #D4D6FA

    oklch(88.6% 0.049 282.8)

  4. Step 300

    300

    #B8BAFA

    oklch(81% 0.09 282.8)

  5. Step 400

    400

    #9593F8

    oklch(70.8% 0.145 282.9)

  6. Step 500

    500

    #7D74F4

    oklch(63.1% 0.186 282.9)

  7. Step 600

    600

    #6858E3

    oklch(55.5% 0.203 282.8)

  8. Step 700

    700

    #5747C5

    oklch(49% 0.188 282.7)

  9. Step 800

    800

    #473CA0

    oklch(42.8% 0.156 282.6)

  10. Step 900

    900 (this color)

    #38317B

    oklch(36.5% 0.121 282.9)

  11. Step 950

    950

    #221F4A

    oklch(26.9% 0.077 283)

Export this scale for Tailwind in the Tailwind colors tool

#38317B 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)#003E7D0.059
Deuteranopia (no green cones)#0039790.057
Tritanopia (no blue cones)#1C42510.103
Achromatopsia (no color)#3C3C3C0.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #38317B

    #38317B

    oklch(36.5% 0.121 282.9)

  • #464000

    #464000

    oklch(36.6% 0.077 103.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #38317B

    #38317B

    oklch(36.5% 0.121 282.9)

  • #003E77

    #003E77

    oklch(36.4% 0.113 253.1)

  • #54266B

    #54266B

    oklch(36.6% 0.121 312.7)

Open the analogous palette in the generator

Split complementary

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

  • #38317B

    #38317B

    oklch(36.5% 0.121 282.9)

  • #573700

    #573700

    oklch(36.6% 0.078 73.2)

  • #274900

    #274900

    oklch(36.5% 0.103 133.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #38317B

    #38317B

    oklch(36.5% 0.121 282.9)

  • #6B2500

    #6B2500

    oklch(36.6% 0.109 42.7)

  • #004B32

    #004B32

    oklch(36.5% 0.079 162.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #38317B

    #38317B

    oklch(36.5% 0.121 282.9)

  • #70182C

    #70182C

    oklch(36.5% 0.121 12.8)

  • #464000

    #464000

    oklch(36.6% 0.077 103.5)

  • #004947

    #004947

    oklch(36.6% 0.063 191.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #38317B 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.