#542F88

Closest named color: Dark Slate Blue (#483D8B). oklch(40.1% 0.142 299), rgb(84, 47, 136).

Aa

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

About this color

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

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

Values

HEX#542F88
RGBrgb(84, 47, 136)
HSLhsl(265, 49%, 36%)
OKLCHoklch(40.1% 0.142 299)

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 #542F88 9.81:1 AAA Lc -96.5 Preferred for body text
Black text on #542F88 2.13:1 Fails Lc 11.6 Not readable
#542F88 text on white 9.81:1 AAA Lc 92.3 Preferred for body text
#542F88 text on black 2.13:1 Fails Lc -10.1 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #ECE6FC

    oklch(93.6% 0.03 298.3)

  3. Step 200

    200

    #DED1FC

    oklch(88.5% 0.06 299)

  4. Step 300

    300

    #CAB1FC

    oklch(80.8% 0.107 299.3)

  5. Step 400

    400

    #B085FB

    oklch(70.7% 0.171 298.8)

  6. Step 500

    500

    #9E60F8

    oklch(63.1% 0.218 298.8)

  7. Step 600

    600

    #8A3EE7

    oklch(55.5% 0.238 298.8)

  8. Step 700

    700

    #762EC9

    oklch(49.2% 0.221 298.9)

  9. Step 800

    800

    #6029A2

    oklch(42.8% 0.182 299.1)

  10. Step 900

    900 (this color)

    #542F88

    oklch(40.1% 0.142 299)

  11. Step 950

    950

    #2D194B

    oklch(27% 0.089 298.7)

Export this scale for Tailwind in the Tailwind colors tool

#542F88 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)#00438B0.102
Deuteranopia (no green cones)#0343860.102
Tritanopia (no blue cones)#4843570.108
Achromatopsia (no color)#4343430.143

Harmonies

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

Complementary

The opposite hue (180°).

  • #542F88

    #542F88

    oklch(40.1% 0.142 299)

  • #434E00

    #434E00

    oklch(40% 0.094 118.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #542F88

    #542F88

    oklch(40.1% 0.142 299)

  • #2A3E93

    #2A3E93

    oklch(40.1% 0.142 269)

  • #6E226C

    #6E226C

    oklch(40% 0.141 328.9)

Open the analogous palette in the generator

Split complementary

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

  • #542F88

    #542F88

    oklch(40.1% 0.142 299)

  • #5A4500

    #5A4500

    oklch(40.2% 0.082 88.8)

  • #005822

    #005822

    oklch(40.2% 0.114 148.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #542F88

    #542F88

    oklch(40.1% 0.142 299)

  • #6C3900

    #6C3900

    oklch(40.1% 0.095 59.5)

  • #005448

    #005448

    oklch(39.9% 0.073 178.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #542F88

    #542F88

    oklch(40.1% 0.142 299)

  • #841A13

    #841A13

    oklch(40.2% 0.142 29)

  • #434E00

    #434E00

    oklch(40% 0.094 118.6)

  • #00525C

    #00525C

    oklch(40.1% 0.069 208.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #542F88 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.