#42417C

Closest named color: Dark Slate Blue (#483D8B). oklch(40.7% 0.097 281.9), rgb(66, 65, 124).

Aa

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

About this color

#42417C is a dark, moderately saturated purple. In OKLCH its lightness is 41%, its chroma 0.097 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.030 away. White text reads best on it, at 9.21:1.

Hue familyPurples
Lightnessdark (41%)
Chromamoderately saturated (0.097)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.27:1
White text9.21:1

Values

HEX#42417C
RGBrgb(66, 65, 124)
HSLhsl(241, 31%, 37%)
OKLCHoklch(40.7% 0.097 281.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 #42417C 9.21:1 AAA Lc -95.5 Preferred for body text
Black text on #42417C 2.27:1 Fails Lc 12.9 Not readable
#42417C text on white 9.21:1 AAA Lc 91.1 Preferred for body text
#42417C text on black 2.27:1 Fails Lc -11.2 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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E8E9F5

    oklch(93.7% 0.016 282.3)

  3. Step 200

    200

    #D5D7EE

    oklch(88.5% 0.032 281.8)

  4. Step 300

    300

    #BABDE5

    oklch(80.9% 0.056 281.7)

  5. Step 400

    400

    #979AD8

    oklch(70.7% 0.09 281.7)

  6. Step 500

    500

    #7F80CE

    oklch(63.2% 0.116 282)

  7. Step 600

    600

    #6968BA

    oklch(55.6% 0.125 282.1)

  8. Step 700

    700

    #5756A1

    oklch(49.1% 0.118 281.8)

  9. Step 800

    800 (this color)

    #42417C

    oklch(40.7% 0.097 281.9)

  10. Step 900

    900

    #3C3C68

    oklch(37.8% 0.074 282.3)

  11. Step 950

    950

    #23233D

    oklch(27% 0.048 282.7)

Export this scale for Tailwind in the Tailwind colors tool

#42417C 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)#294A7E0.038
Deuteranopia (no green cones)#26457B0.038
Tritanopia (no blue cones)#2F4D580.084
Achromatopsia (no color)#4848480.097

Harmonies

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

Complementary

The opposite hue (180°).

  • #42417C

    #42417C

    oklch(40.7% 0.097 281.9)

  • #534A00

    #534A00

    oklch(40.5% 0.085 101.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42417C

    #42417C

    oklch(40.7% 0.097 281.9)

  • #1B4B7C

    #1B4B7C

    oklch(40.7% 0.097 251.9)

  • #5B386F

    #5B386F

    oklch(40.7% 0.097 312.1)

Open the analogous palette in the generator

Split complementary

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

  • #42417C

    #42417C

    oklch(40.7% 0.097 281.9)

  • #664000

    #664000

    oklch(40.6% 0.087 71.6)

  • #355414

    #355414

    oklch(40.7% 0.098 131.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42417C

    #42417C

    oklch(40.7% 0.097 281.9)

  • #74341A

    #74341A

    oklch(40.7% 0.098 41.5)

  • #00583A

    #00583A

    oklch(40.7% 0.09 161.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42417C

    #42417C

    oklch(40.7% 0.097 281.9)

  • #74303B

    #74303B

    oklch(40.7% 0.096 12.4)

  • #534A00

    #534A00

    oklch(40.5% 0.085 101.4)

  • #005553

    #005553

    oklch(40.6% 0.07 192)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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