#51318D

Closest named color: Dark Slate Blue (#483D8B). oklch(40.4% 0.145 295.1), rgb(81, 49, 141).

Aa

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

About this color

#51318D is a dark, vivid purple. In OKLCH its lightness is 40%, its chroma 0.145 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.031 away. White text reads best on it, at 9.66:1.

Hue familyPurples
Lightnessdark (40%)
Chromavivid (0.145)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text2.17:1
White text9.66:1

Values

HEX#51318D
RGBrgb(81, 49, 141)
HSLhsl(261, 48%, 37%)
OKLCHoklch(40.4% 0.145 295.1)

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 #51318D 9.66:1 AAA Lc -96.2 Preferred for body text
Black text on #51318D 2.17:1 Fails Lc 12.0 Not readable
#51318D text on white 9.66:1 AAA Lc 91.9 Preferred for body text
#51318D text on black 2.17:1 Fails Lc -10.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 800.

  1. Step 50

    50

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #EBE7F9

    oklch(93.6% 0.024 296.1)

  3. Step 200

    200

    #DBD4F6

    oklch(88.6% 0.047 294.9)

  4. Step 300

    300

    #C4B6F2

    oklch(80.9% 0.085 295.1)

  5. Step 400

    400

    #A78EEC

    oklch(70.7% 0.136 294.9)

  6. Step 500

    500

    #936FE5

    oklch(63.1% 0.172 295.1)

  7. Step 600

    600

    #7F53D3

    oklch(55.6% 0.188 295.4)

  8. Step 700

    700

    #6B43B7

    oklch(49.1% 0.175 295)

  9. Step 800

    800 (this color)

    #51318D

    oklch(40.4% 0.145 295.1)

  10. Step 900

    900

    #473176

    oklch(37.6% 0.114 295.1)

  11. Step 950

    950

    #2A1E45

    oklch(27.1% 0.071 295.5)

Export this scale for Tailwind in the Tailwind colors tool

#51318D 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)#0045900.095
Deuteranopia (no green cones)#00438B0.095
Tritanopia (no blue cones)#41465A0.114
Achromatopsia (no color)#4545450.146

Harmonies

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

Complementary

The opposite hue (180°).

  • #51318D

    #51318D

    oklch(40.4% 0.145 295.1)

  • #484E00

    #484E00

    oklch(40.5% 0.091 114.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #51318D

    #51318D

    oklch(40.4% 0.145 295.1)

  • #214096

    #214096

    oklch(40.3% 0.146 265.3)

  • #6D2373

    #6D2373

    oklch(40.4% 0.146 324.7)

Open the analogous palette in the generator

Split complementary

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

  • #51318D

    #51318D

    oklch(40.4% 0.145 295.1)

  • #5D4400

    #5D4400

    oklch(40.3% 0.083 84.7)

  • #005914

    #005914

    oklch(40.3% 0.126 145.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #51318D

    #51318D

    oklch(40.4% 0.145 295.1)

  • #703700

    #703700

    oklch(40.3% 0.1 55.3)

  • #005646

    #005646

    oklch(40.4% 0.077 174.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #51318D

    #51318D

    oklch(40.4% 0.145 295.1)

  • #86171B

    #86171B

    oklch(40.4% 0.145 25.2)

  • #484E00

    #484E00

    oklch(40.5% 0.091 114.7)

  • #00535B

    #00535B

    oklch(40.4% 0.069 206)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #51318D 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.