#311D2B

Closest named color: Jet (#212529). oklch(26.2% 0.039 338.5), rgb(49, 29, 43).

Aa

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

About this color

#311D2B is a dark, muted purple. In OKLCH its lightness is 26%, 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.040 away. White text reads best on it, at 15.65:1.

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

Values

HEX#311D2B
RGBrgb(49, 29, 43)
HSLhsl(318, 26%, 15%)
OKLCHoklch(26.2% 0.039 338.5)

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 #311D2B 15.65:1 AAA Lc -105.2 Preferred for body text
Black text on #311D2B 1.34:1 Fails Lc 0.0 Not readable
#311D2B text on white 15.65:1 AAA Lc 102.5 Preferred for body text
#311D2B text on black 1.34: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

    #9A5A88

    oklch(55.6% 0.104 338.2)

  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)

    #311D2B

    oklch(26.2% 0.039 338.5)

Export this scale for Tailwind in the Tailwind colors tool

#311D2B 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)#1E212C0.038
Deuteranopia (no green cones)#22242A0.036
Tritanopia (no blue cones)#331D220.017
Achromatopsia (no color)#2323230.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #311D2B

    #311D2B

    oklch(26.2% 0.039 338.5)

  • #122A1D

    #122A1D

    oklch(26.1% 0.039 158.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311D2B

    #311D2B

    oklch(26.2% 0.039 338.5)

  • #2A1F33

    #2A1F33

    oklch(26.2% 0.039 309)

  • #351C21

    #351C21

    oklch(26.2% 0.04 7.3)

Open the analogous palette in the generator

Split complementary

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

  • #311D2B

    #311D2B

    oklch(26.2% 0.039 338.5)

  • #1F2813

    #1F2813

    oklch(26.2% 0.039 127.8)

  • #082B28

    #082B28

    oklch(26.3% 0.04 186.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311D2B

    #311D2B

    oklch(26.2% 0.039 338.5)

  • #29250D

    #29250D

    oklch(26.2% 0.039 100)

  • #0A2931

    #0A2931

    oklch(26.2% 0.039 218.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311D2B

    #311D2B

    oklch(26.2% 0.039 338.5)

  • #31210E

    #31210E

    oklch(26.3% 0.039 69.4)

  • #122A1D

    #122A1D

    oklch(26.1% 0.039 158.4)

  • #152637

    #152637

    oklch(26.2% 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 #311D2B, closest first.

Similar named colors

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

Use #311D2B 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.