#331B55

Closest named color: Dark Purple (#35063E). oklch(28.9% 0.101 299), rgb(51, 27, 85).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (29%)
Chromamoderately saturated (0.101)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.42:1
White text14.69:1

Values

HEX#331B55
RGBrgb(51, 27, 85)
HSLhsl(265, 52%, 22%)
OKLCHoklch(28.9% 0.101 299)

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 #331B55 14.69:1 AAA Lc -104.1 Preferred for body text
Black text on #331B55 1.42:1 Fails Lc 0.0 Not readable
#331B55 text on white 14.69:1 AAA Lc 101.2 Preferred for body text
#331B55 text on black 1.42: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

    #F7F3FF

    oklch(97.1% 0.016 301.2)

  2. Step 100

    100

    #EDE5FE

    oklch(93.6% 0.035 300.3)

  3. Step 200

    200

    #DFD0FF

    oklch(88.5% 0.066 299.6)

  4. Step 300

    300

    #CAB1FF

    oklch(81% 0.111 298.6)

  5. Step 400

    400

    #B183FF

    oklch(70.7% 0.179 298.9)

  6. Step 500

    500

    #A05BFF

    oklch(63.1% 0.232 298.9)

  7. Step 600

    600

    #8E2EF4

    oklch(55.6% 0.265 299)

  8. Step 700

    700

    #791BD5

    oklch(49.1% 0.247 298.8)

  9. Step 800

    800

    #621DAC

    oklch(42.7% 0.204 298.8)

  10. Step 900

    900

    #502288

    oklch(37.8% 0.159 299.1)

  11. Step 950

    950 (this color)

    #331B55

    oklch(28.9% 0.101 299)

Export this scale for Tailwind in the Tailwind colors tool

#331B55 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)#0028570.073
Deuteranopia (no green cones)#0328540.071
Tritanopia (no blue cones)#2B28350.077
Achromatopsia (no color)#2828280.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #331B55

    #331B55

    oklch(28.9% 0.101 299)

  • #282F00

    #282F00

    oklch(28.8% 0.067 118.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331B55

    #331B55

    oklch(28.9% 0.101 299)

  • #17255C

    #17255C

    oklch(28.9% 0.1 268.6)

  • #441343

    #441343

    oklch(28.9% 0.1 328.6)

Open the analogous palette in the generator

Split complementary

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

  • #331B55

    #331B55

    oklch(28.9% 0.101 299)

  • #372900

    #372900

    oklch(28.9% 0.059 88.7)

  • #003512

    #003512

    oklch(28.7% 0.081 149.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331B55

    #331B55

    oklch(28.9% 0.101 299)

  • #432100

    #432100

    oklch(28.9% 0.068 59.3)

  • #00332C

    #00332C

    oklch(28.8% 0.052 180.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331B55

    #331B55

    oklch(28.9% 0.101 299)

  • #520D09

    #520D09

    oklch(28.8% 0.101 28.6)

  • #282F00

    #282F00

    oklch(28.8% 0.067 118.3)

  • #003238

    #003238

    oklch(29% 0.05 207.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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