#331E43

Closest named color: Space Cadet (#2B2D42). oklch(28.1% 0.07 308.8), rgb(51, 30, 67).

Aa

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

About this color

#331E43 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.070 and its hue 309°. 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 14.91:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.070)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.40:1
White text14.91:1

Values

HEX#331E43
RGBrgb(51, 30, 67)
HSLhsl(274, 38%, 19%)
OKLCHoklch(28.1% 0.07 308.8)

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 #331E43 14.91:1 AAA Lc -104.5 Preferred for body text
Black text on #331E43 1.40:1 Fails Lc 0.0 Not readable
#331E43 text on white 14.91:1 AAA Lc 101.6 Preferred for body text
#331E43 text on black 1.40: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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EEE6F6

    oklch(93.6% 0.023 308.2)

  3. Step 200

    200

    #E2D1F1

    oklch(88.4% 0.047 309.2)

  4. Step 300

    300

    #D0B2EA

    oklch(80.8% 0.084 308.9)

  5. Step 400

    400

    #B888DF

    oklch(70.6% 0.133 308.7)

  6. Step 500

    500

    #A768D6

    oklch(63.1% 0.169 308.8)

  7. Step 600

    600

    #924CC3

    oklch(55.6% 0.184 308.7)

  8. Step 700

    700

    #7D3CA9

    oklch(49.2% 0.172 308.8)

  9. Step 800

    800

    #653389

    oklch(42.8% 0.141 308.4)

  10. Step 900

    900

    #522D6D

    oklch(37.5% 0.111 308.7)

  11. Step 950

    950 (this color)

    #331E43

    oklch(28.1% 0.07 308.8)

Export this scale for Tailwind in the Tailwind colors tool

#331E43 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)#1426440.056
Deuteranopia (no green cones)#1A27420.050
Tritanopia (no blue cones)#31242D0.050
Achromatopsia (no color)#2727270.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #331E43

    #331E43

    oklch(28.1% 0.07 308.8)

  • #1E2F03

    #1E2F03

    oklch(28% 0.07 128.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331E43

    #331E43

    oklch(28.1% 0.07 308.8)

  • #22244B

    #22244B

    oklch(28.1% 0.071 278.6)

  • #3F1934

    #3F1934

    oklch(28.1% 0.071 339.8)

Open the analogous palette in the generator

Split complementary

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

  • #331E43

    #331E43

    oklch(28.1% 0.07 308.8)

  • #302900

    #302900

    oklch(28% 0.058 99.3)

  • #00321D

    #00321D

    oklch(28% 0.064 159.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331E43

    #331E43

    oklch(28.1% 0.07 308.8)

  • #3C2200

    #3C2200

    oklch(28% 0.061 68.4)

  • #00312E

    #00312E

    oklch(28.2% 0.049 188.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331E43

    #331E43

    oklch(28.1% 0.07 308.8)

  • #451A0C

    #451A0C

    oklch(28% 0.071 38.3)

  • #1E2F03

    #1E2F03

    oklch(28% 0.07 128.8)

  • #002F3A

    #002F3A

    oklch(28.2% 0.051 218.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #331E43 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.