#331D46

Closest named color: Dark Purple (#35063E). oklch(28.1% 0.076 306.9), rgb(51, 29, 70).

Aa

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

About this color

#331D46 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.076 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.051 away. White text reads best on it, at 14.94:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.076)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.40:1
White text14.94:1

Values

HEX#331D46
RGBrgb(51, 29, 70)
HSLhsl(272, 41%, 19%)
OKLCHoklch(28.1% 0.076 306.9)

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

    #F7F3FC

    oklch(97% 0.013 306)

  2. Step 100

    100

    #EEE6F8

    oklch(93.6% 0.025 305.8)

  3. Step 200

    200

    #E2D1F4

    oklch(88.5% 0.051 307.2)

  4. Step 300

    300

    #D0B2EF

    oklch(81% 0.09 306.9)

  5. Step 400

    400

    #B886E6

    oklch(70.6% 0.145 307.1)

  6. Step 500

    500

    #A764DF

    oklch(63.1% 0.185 307)

  7. Step 600

    600

    #9247CD

    oklch(55.6% 0.201 306.7)

  8. Step 700

    700

    #7D37B1

    oklch(49.1% 0.187 307.1)

  9. Step 800

    800

    #652F8F

    oklch(42.6% 0.154 306.8)

  10. Step 900

    900

    #522B72

    oklch(37.6% 0.12 306.8)

  11. Step 950

    950 (this color)

    #331D46

    oklch(28.1% 0.076 306.9)

Export this scale for Tailwind in the Tailwind colors tool

#331D46 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)#1126470.060
Deuteranopia (no green cones)#1727450.054
Tritanopia (no blue cones)#30242E0.055
Achromatopsia (no color)#2727270.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #331D46

    #331D46

    oklch(28.1% 0.076 306.9)

  • #1F2F00

    #1F2F00

    oklch(28% 0.072 127.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331D46

    #331D46

    oklch(28.1% 0.076 306.9)

  • #20244E

    #20244E

    oklch(28.1% 0.076 276.2)

  • #401837

    #401837

    oklch(28.2% 0.077 336.9)

Open the analogous palette in the generator

Split complementary

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

  • #331D46

    #331D46

    oklch(28.1% 0.076 306.9)

  • #312900

    #312900

    oklch(28.1% 0.058 97.8)

  • #00331B

    #00331B

    oklch(28.2% 0.068 156.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331D46

    #331D46

    oklch(28.1% 0.076 306.9)

  • #3D2200

    #3D2200

    oklch(28.1% 0.062 67.2)

  • #00312D

    #00312D

    oklch(28.2% 0.049 186.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331D46

    #331D46

    oklch(28.1% 0.076 306.9)

  • #47180A

    #47180A

    oklch(28% 0.076 37)

  • #1F2F00

    #1F2F00

    oklch(28% 0.072 127.2)

  • #002F39

    #002F39

    oklch(28.1% 0.05 216.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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