#40223C

Closest named color: Space Cadet (#2B2D42). oklch(30.2% 0.061 332), rgb(64, 34, 60).

Aa

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

About this color

#40223C is a dark, muted purple. In OKLCH its lightness is 30%, its chroma 0.061 and its hue 332°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.048 away. White text reads best on it, at 13.88:1.

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.061)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.51:1
White text13.88:1

Values

HEX#40223C
RGBrgb(64, 34, 60)
HSLhsl(308, 31%, 19%)
OKLCHoklch(30.2% 0.061 332)

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 #40223C 13.88:1 AAA Lc -103.4 Preferred for body text
Black text on #40223C 1.51:1 Fails Lc 0.0 Not readable
#40223C text on white 13.88:1 AAA Lc 100.3 Preferred for body text
#40223C text on black 1.51: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

    #FAF3F8

    oklch(97.1% 0.01 335.5)

  2. Step 100

    100

    #F3E5F0

    oklch(93.6% 0.021 332.9)

  3. Step 200

    200

    #EAD0E5

    oklch(88.5% 0.04 332.4)

  4. Step 300

    300

    #DDB0D6

    oklch(80.9% 0.072 331.6)

  5. Step 400

    400

    #CB85C1

    oklch(70.8% 0.116 331.9)

  6. Step 500

    500

    #BC64B1

    oklch(63.1% 0.148 332)

  7. Step 600

    600

    #A7499C

    oklch(55.6% 0.16 332.2)

  8. Step 700

    700

    #8F3986

    oklch(49.1% 0.15 331.9)

  9. Step 800

    800

    #74306D

    oklch(42.7% 0.125 331.6)

  10. Step 900

    900

    #5E2B58

    oklch(37.6% 0.097 331.9)

  11. Step 950

    950 (this color)

    #40223C

    oklch(30.2% 0.061 332)

Export this scale for Tailwind in the Tailwind colors tool

#40223C 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)#212A3D0.060
Deuteranopia (no green cones)#292E3B0.055
Tritanopia (no blue cones)#42242C0.032
Achromatopsia (no color)#2C2C2C0.062

Harmonies

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

Complementary

The opposite hue (180°).

  • #40223C

    #40223C

    oklch(30.2% 0.061 332)

  • #12371E

    #12371E

    oklch(30.2% 0.062 151.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40223C

    #40223C

    oklch(30.2% 0.061 332)

  • #342648

    #342648

    oklch(30.2% 0.062 301.8)

  • #47202C

    #47202C

    oklch(30.2% 0.061 1.9)

Open the analogous palette in the generator

Split complementary

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

  • #40223C

    #40223C

    oklch(30.2% 0.061 332)

  • #29330B

    #29330B

    oklch(30.2% 0.062 122.2)

  • #003730

    #003730

    oklch(30.2% 0.054 181.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40223C

    #40223C

    oklch(30.2% 0.061 332)

  • #392D01

    #392D01

    oklch(30.2% 0.061 92.6)

  • #00353E

    #00353E

    oklch(30.2% 0.053 212.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40223C

    #40223C

    oklch(30.2% 0.061 332)

  • #442608

    #442608

    oklch(30.2% 0.061 61.1)

  • #12371E

    #12371E

    oklch(30.2% 0.062 151.5)

  • #0C314A

    #0C314A

    oklch(30.1% 0.061 242.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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