#332B40

Closest named color: Space Cadet (#2B2D42). oklch(30.7% 0.039 301.6), rgb(51, 43, 64).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (31%)
Chromamuted (0.039)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.56:1
White text13.45:1

Values

HEX#332B40
RGBrgb(51, 43, 64)
HSLhsl(263, 20%, 21%)
OKLCHoklch(30.7% 0.039 301.6)

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 #332B40 13.45:1 AAA Lc -103.0 Preferred for body text
Black text on #332B40 1.56:1 Fails Lc 0.0 Not readable
#332B40 text on white 13.45:1 AAA Lc 99.9 Preferred for body text
#332B40 text on black 1.56: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

    #F6F4F9

    oklch(97% 0.007 304.2)

  2. Step 100

    100

    #EBE8F1

    oklch(93.6% 0.012 301.3)

  3. Step 200

    200

    #DCD6E8

    oklch(88.6% 0.025 301)

  4. Step 300

    300

    #C6BADA

    oklch(80.9% 0.046 302.4)

  5. Step 400

    400

    #A996C7

    oklch(70.7% 0.073 302.3)

  6. Step 500

    500

    #947CB9

    oklch(63.2% 0.093 301.9)

  7. Step 600

    600

    #7E64A5

    oklch(55.6% 0.102 301.6)

  8. Step 700

    700

    #6A538D

    oklch(49.1% 0.094 301.3)

  9. Step 800

    800

    #574473

    oklch(42.7% 0.079 301.8)

  10. Step 900

    900

    #473A5D

    oklch(37.8% 0.06 300.6)

  11. Step 950

    950 (this color)

    #332B40

    oklch(30.7% 0.039 301.6)

Export this scale for Tailwind in the Tailwind colors tool

#332B40 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)#272F410.023
Deuteranopia (no green cones)#282F3F0.022
Tritanopia (no blue cones)#312E320.031
Achromatopsia (no color)#2F2F2F0.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #332B40

    #332B40

    oklch(30.7% 0.039 301.6)

  • #2C331C

    #2C331C

    oklch(30.8% 0.04 122.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332B40

    #332B40

    oklch(30.7% 0.039 301.6)

  • #292E43

    #292E43

    oklch(30.6% 0.039 273.6)

  • #3B2838

    #3B2838

    oklch(30.6% 0.039 332.1)

Open the analogous palette in the generator

Split complementary

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

  • #332B40

    #332B40

    oklch(30.7% 0.039 301.6)

  • #372F18

    #372F18

    oklch(30.8% 0.039 90.8)

  • #213526

    #213526

    oklch(30.7% 0.037 151.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332B40

    #332B40

    oklch(30.7% 0.039 301.6)

  • #3E2B1B

    #3E2B1B

    oklch(30.7% 0.039 60.7)

  • #173631

    #173631

    oklch(30.7% 0.038 181.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332B40

    #332B40

    oklch(30.7% 0.039 301.6)

  • #412823

    #412823

    oklch(30.6% 0.039 31.8)

  • #2C331C

    #2C331C

    oklch(30.8% 0.04 122.5)

  • #15353B

    #15353B

    oklch(30.8% 0.039 211.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #332B40 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.