#331F2D

Closest named color: Jet (#212529). oklch(27% 0.039 338.4), rgb(51, 31, 45).

Aa

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

About this color

#331F2D is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.039 and its hue 338°. Its hue sits on the warm side of the wheel. The nearest named color is Jet (#212529), ΔE 0.041 away. White text reads best on it, at 15.27:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.039)
Temperaturewarm
Nearest nameJet (#212529)
Black text1.37:1
White text15.27:1

Values

HEX#331F2D
RGBrgb(51, 31, 45)
HSLhsl(318, 24%, 16%)
OKLCHoklch(27% 0.039 338.4)

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 #331F2D 15.27:1 AAA Lc -104.9 Preferred for body text
Black text on #331F2D 1.37:1 Fails Lc 0.0 Not readable
#331F2D text on white 15.27:1 AAA Lc 102.1 Preferred for body text
#331F2D text on black 1.37: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

    #F8F4F7

    oklch(97.1% 0.006 334)

  2. Step 100

    100

    #F0E7ED

    oklch(93.7% 0.013 337.5)

  3. Step 200

    200

    #E5D3DF

    oklch(88.5% 0.025 337.8)

  4. Step 300

    300

    #D5B6CB

    oklch(80.9% 0.045 337.9)

  5. Step 400

    400

    #C08FB0

    oklch(70.7% 0.074 338.9)

  6. Step 500

    500

    #AF739D

    oklch(63.2% 0.094 338.5)

  7. Step 600

    600

    #9A5B88

    oklch(55.7% 0.102 338.4)

  8. Step 700

    700

    #834A73

    oklch(49.1% 0.095 338.3)

  9. Step 800

    800

    #6B3D5E

    oklch(42.8% 0.079 338.3)

  10. Step 900

    900

    #57344D

    oklch(37.7% 0.063 338.1)

  11. Step 950

    950 (this color)

    #331F2D

    oklch(27% 0.039 338.4)

Export this scale for Tailwind in the Tailwind colors tool

#331F2D 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)#20232E0.038
Deuteranopia (no green cones)#24262C0.036
Tritanopia (no blue cones)#351F240.017
Achromatopsia (no color)#2525250.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #331F2D

    #331F2D

    oklch(27% 0.039 338.4)

  • #152C1F

    #152C1F

    oklch(27% 0.038 157.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331F2D

    #331F2D

    oklch(27% 0.039 338.4)

  • #2C2135

    #2C2135

    oklch(27% 0.039 309.1)

  • #371E23

    #371E23

    oklch(27% 0.04 7.1)

Open the analogous palette in the generator

Split complementary

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

  • #331F2D

    #331F2D

    oklch(27% 0.039 338.4)

  • #212A15

    #212A15

    oklch(27% 0.039 127.7)

  • #0B2D2A

    #0B2D2A

    oklch(27.2% 0.039 187)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331F2D

    #331F2D

    oklch(27% 0.039 338.4)

  • #2B270F

    #2B270F

    oklch(27.1% 0.039 100)

  • #0C2B33

    #0C2B33

    oklch(27% 0.039 217.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331F2D

    #331F2D

    oklch(27% 0.039 338.4)

  • #332311

    #332311

    oklch(27.1% 0.038 68.3)

  • #152C1F

    #152C1F

    oklch(27% 0.038 157.7)

  • #172839

    #172839

    oklch(27.1% 0.039 249.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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