#42337F

Closest named color: Dark Slate Blue (#483D8B). oklch(38.1% 0.123 288.2), rgb(66, 51, 127).

Aa

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

About this color

#42337F is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.123 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.034 away. White text reads best on it, at 10.43:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.123)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.01:1
White text10.43:1

Values

HEX#42337F
RGBrgb(66, 51, 127)
HSLhsl(252, 43%, 35%)
OKLCHoklch(38.1% 0.123 288.2)

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 #42337F 10.43:1 AAA Lc -98.0 Preferred for body text
Black text on #42337F 2.01:1 Fails Lc 10.0 Not readable
#42337F text on white 10.43:1 AAA Lc 93.9 Preferred for body text
#42337F text on black 2.01:1 Fails Lc -8.6 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

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #E8E7FB

    oklch(93.5% 0.027 288.2)

  3. Step 200

    200

    #D7D4FA

    oklch(88.4% 0.052 288.9)

  4. Step 300

    300

    #BDB7F9

    oklch(80.8% 0.093 288.3)

  5. Step 400

    400

    #9D8FF6

    oklch(70.6% 0.148 288.2)

  6. Step 500

    500

    #8870F3

    oklch(63.2% 0.189 288.2)

  7. Step 600

    600

    #7353E1

    oklch(55.5% 0.205 288.2)

  8. Step 700

    700

    #6143C4

    oklch(49.2% 0.191 288)

  9. Step 800

    800

    #4F389E

    oklch(42.7% 0.158 288.2)

  10. Step 900

    900 (this color)

    #42337F

    oklch(38.1% 0.123 288.2)

  11. Step 950

    950

    #261E4A

    oklch(27.1% 0.079 288.4)

Export this scale for Tailwind in the Tailwind colors tool

#42337F 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)#0041820.071
Deuteranopia (no green cones)#003E7D0.071
Tritanopia (no blue cones)#2F44540.101
Achromatopsia (no color)#4040400.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #42337F

    #42337F

    oklch(38.1% 0.123 288.2)

  • #474500

    #474500

    oklch(38% 0.082 107.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #42337F

    #42337F

    oklch(38.1% 0.123 288.2)

  • #104083

    #104083

    oklch(38.2% 0.124 258.1)

  • #5D286C

    #5D286C

    oklch(38.2% 0.123 318.2)

Open the analogous palette in the generator

Split complementary

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

  • #42337F

    #42337F

    oklch(38.1% 0.123 288.2)

  • #593C00

    #593C00

    oklch(38% 0.079 78.1)

  • #1C5000

    #1C5000

    oklch(38.1% 0.118 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #42337F

    #42337F

    oklch(38.1% 0.123 288.2)

  • #6D2D00

    #6D2D00

    oklch(38.1% 0.104 47.9)

  • #004F3B

    #004F3B

    oklch(38% 0.076 168.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #42337F

    #42337F

    oklch(38.1% 0.123 288.2)

  • #761D28

    #761D28

    oklch(38.1% 0.122 18.5)

  • #474500

    #474500

    oklch(38% 0.082 107.9)

  • #004D4F

    #004D4F

    oklch(38.1% 0.065 197.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #42337F 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.