#40233F

Closest named color: Space Cadet (#2B2D42). oklch(30.6% 0.062 328.2), rgb(64, 35, 63).

Aa

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

About this color

#40233F is a dark, muted purple. In OKLCH its lightness is 31%, its chroma 0.062 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.047 away. White text reads best on it, at 13.72:1.

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.062)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.53:1
White text13.72:1

Values

HEX#40233F
RGBrgb(64, 35, 63)
HSLhsl(302, 29%, 19%)
OKLCHoklch(30.6% 0.062 328.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 #40233F 13.72:1 AAA Lc -103.2 Preferred for body text
Black text on #40233F 1.53:1 Fails Lc 0.0 Not readable
#40233F text on white 13.72:1 AAA Lc 100.1 Preferred for body text
#40233F text on black 1.53: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 950.

  1. Step 50

    50

    #F9F3F9

    oklch(97% 0.01 325.7)

  2. Step 100

    100

    #F2E5F1

    oklch(93.6% 0.021 328.1)

  3. Step 200

    200

    #E9D0E7

    oklch(88.5% 0.041 328.4)

  4. Step 300

    300

    #DCB0D9

    oklch(80.9% 0.075 328.5)

  5. Step 400

    400

    #C985C6

    oklch(70.7% 0.119 328.3)

  6. Step 500

    500

    #B964B7

    oklch(63% 0.152 328)

  7. Step 600

    600

    #A449A3

    oklch(55.6% 0.164 327.9)

  8. Step 700

    700

    #8D398B

    oklch(49.1% 0.154 328.5)

  9. Step 800

    800

    #723071

    oklch(42.6% 0.127 328.1)

  10. Step 900

    900

    #5D2C5C

    oklch(37.8% 0.099 328.1)

  11. Step 950

    950 (this color)

    #40233F

    oklch(30.6% 0.062 328.2)

Export this scale for Tailwind in the Tailwind colors tool

#40233F 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)#212B400.060
Deuteranopia (no green cones)#292F3E0.054
Tritanopia (no blue cones)#42262E0.035
Achromatopsia (no color)#2D2D2D0.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #40233F

    #40233F

    oklch(30.6% 0.062 328.2)

  • #16381D

    #16381D

    oklch(30.7% 0.062 148.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40233F

    #40233F

    oklch(30.6% 0.062 328.2)

  • #33284A

    #33284A

    oklch(30.6% 0.061 297.6)

  • #48212F

    #48212F

    oklch(30.7% 0.062 358.6)

Open the analogous palette in the generator

Split complementary

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

  • #40233F

    #40233F

    oklch(30.6% 0.062 328.2)

  • #2C3309

    #2C3309

    oklch(30.5% 0.062 118.5)

  • #00382F

    #00382F

    oklch(30.5% 0.056 178.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40233F

    #40233F

    oklch(30.6% 0.062 328.2)

  • #3C2D00

    #3C2D00

    oklch(30.6% 0.062 88.7)

  • #00363D

    #00363D

    oklch(30.5% 0.052 208.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40233F

    #40233F

    oklch(30.6% 0.062 328.2)

  • #46260A

    #46260A

    oklch(30.5% 0.062 57.8)

  • #16381D

    #16381D

    oklch(30.7% 0.062 148.4)

  • #07334B

    #07334B

    oklch(30.6% 0.063 238.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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