#331F30

Closest named color: Jet (#212529). oklch(27.2% 0.042 332.1), rgb(51, 31, 48).

Aa

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

About this color

#331F30 is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.042 and its hue 332°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Jet (#212529), ΔE 0.043 away. White text reads best on it, at 15.22:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.042)
Temperaturein between
Nearest nameJet (#212529)
Black text1.37:1
White text15.22:1

Values

HEX#331F30
RGBrgb(51, 31, 48)
HSLhsl(309, 24%, 16%)
OKLCHoklch(27.2% 0.042 332.1)

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 #331F30 15.22:1 AAA Lc -104.8 Preferred for body text
Black text on #331F30 1.37:1 Fails Lc 0.0 Not readable
#331F30 text on white 15.22:1 AAA Lc 102.1 Preferred for body text
#331F30 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

    #F0E6EE

    oklch(93.5% 0.015 332.2)

  3. Step 200

    200

    #E5D3E1

    oklch(88.6% 0.027 333.3)

  4. Step 300

    300

    #D5B5CF

    oklch(80.9% 0.051 332.4)

  5. Step 400

    400

    #BF8EB7

    oklch(70.7% 0.081 332.2)

  6. Step 500

    500

    #AE72A5

    oklch(63.2% 0.102 332.2)

  7. Step 600

    600

    #995990

    oklch(55.6% 0.112 332.2)

  8. Step 700

    700

    #82497A

    oklch(49.1% 0.102 332.3)

  9. Step 800

    800

    #6A3C64

    oklch(42.7% 0.086 331.8)

  10. Step 900

    900

    #563451

    oklch(37.7% 0.066 332.2)

  11. Step 950

    950 (this color)

    #331F30

    oklch(27.2% 0.042 332.1)

Export this scale for Tailwind in the Tailwind colors tool

#331F30 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)#1F24310.040
Deuteranopia (no green cones)#23272F0.039
Tritanopia (no blue cones)#3520250.022
Achromatopsia (no color)#2626260.042

Harmonies

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

Complementary

The opposite hue (180°).

  • #331F30

    #331F30

    oklch(27.2% 0.042 332.1)

  • #162D1D

    #162D1D

    oklch(27.3% 0.042 152.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331F30

    #331F30

    oklch(27.2% 0.042 332.1)

  • #2B2238

    #2B2238

    oklch(27.3% 0.042 302.5)

  • #381E25

    #381E25

    oklch(27.2% 0.042 2.8)

Open the analogous palette in the generator

Split complementary

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

  • #331F30

    #331F30

    oklch(27.2% 0.042 332.1)

  • #232A12

    #232A12

    oklch(27.1% 0.042 122.5)

  • #092E28

    #092E28

    oklch(27.3% 0.043 180)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331F30

    #331F30

    oklch(27.2% 0.042 332.1)

  • #2E260C

    #2E260C

    oklch(27.1% 0.042 92.3)

  • #072C33

    #072C33

    oklch(27.1% 0.042 213.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331F30

    #331F30

    oklch(27.2% 0.042 332.1)

  • #362210

    #362210

    oklch(27.3% 0.042 61.5)

  • #162D1D

    #162D1D

    oklch(27.3% 0.042 152.6)

  • #13293A

    #13293A

    oklch(27.2% 0.042 243.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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