#42237D

Closest named color: Indigo (#4B0082). oklch(35.3% 0.143 293.5), rgb(66, 35, 125).

Aa

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

About this color

#42237D is a dark, vivid purple. In OKLCH its lightness is 35%, its chroma 0.143 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Indigo (#4B0082), ΔE 0.045 away. White text reads best on it, at 11.87:1.

Hue familyPurples
Lightnessdark (35%)
Chromavivid (0.143)
Temperaturein between
Nearest nameIndigo (#4B0082)
Black text1.76:1
White text11.87:1

Values

HEX#42237D
RGBrgb(66, 35, 125)
HSLhsl(261, 56%, 31%)
OKLCHoklch(35.3% 0.143 293.5)

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 #42237D 11.87:1 AAA Lc -100.3 Preferred for body text
Black text on #42237D 1.76:1 Fails Lc 0.0 Not readable
#42237D text on white 11.87:1 AAA Lc 96.6 Preferred for body text
#42237D text on black 1.76:1 Fails Lc 0.0 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

    #F6F4FF

    oklch(97.2% 0.015 294.5)

  2. Step 100

    100

    #EAE6FD

    oklch(93.5% 0.031 293.8)

  3. Step 200

    200

    #DAD2FE

    oklch(88.4% 0.061 293.5)

  4. Step 300

    300

    #C3B4FF

    oklch(80.9% 0.105 293.1)

  5. Step 400

    400

    #A788FF

    oklch(70.7% 0.17 293.6)

  6. Step 500

    500

    #9464FE

    oklch(63.1% 0.218 293.5)

  7. Step 600

    600

    #8043EE

    oklch(55.6% 0.239 293.3)

  8. Step 700

    700

    #6D32CF

    oklch(49.1% 0.222 293.6)

  9. Step 800

    800

    #582CA7

    oklch(42.7% 0.183 293.4)

  10. Step 900

    900 (this color)

    #42237D

    oklch(35.3% 0.143 293.5)

  11. Step 950

    950

    #2A1A4E

    oklch(27% 0.091 293.5)

Export this scale for Tailwind in the Tailwind colors tool

#42237D 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)#0038800.085
Deuteranopia (no green cones)#00367B0.084
Tritanopia (no blue cones)#313A4D0.113
Achromatopsia (no color)#3737370.144

Harmonies

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

Complementary

The opposite hue (180°).

  • #42237D

    #42237D

    oklch(35.3% 0.143 293.5)

  • #3C3F00

    #3C3F00

    oklch(35.3% 0.079 112.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42237D

    #42237D

    oklch(35.3% 0.143 293.5)

  • #103384

    #103384

    oklch(35.4% 0.142 263.3)

  • #5D1465

    #5D1465

    oklch(35.4% 0.144 323.6)

Open the analogous palette in the generator

Split complementary

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

  • #42237D

    #42237D

    oklch(35.3% 0.143 293.5)

  • #4D3700

    #4D3700

    oklch(35.2% 0.072 83.6)

  • #004A06

    #004A06

    oklch(35.5% 0.117 143.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42237D

    #42237D

    oklch(35.3% 0.143 293.5)

  • #5E2B00

    #5E2B00

    oklch(35.3% 0.09 53)

  • #004738

    #004738

    oklch(35.5% 0.068 172.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42237D

    #42237D

    oklch(35.3% 0.143 293.5)

  • #740012

    #740012

    oklch(35.3% 0.142 23.4)

  • #3C3F00

    #3C3F00

    oklch(35.3% 0.079 112.8)

  • #00444A

    #00444A

    oklch(35.3% 0.06 204.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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