#311F37

Closest named color: Oxford Blue (#1B263B). oklch(27.3% 0.05 317.4), rgb(49, 31, 55).

Aa

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

About this color

#311F37 is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.050 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.043 away. White text reads best on it, at 15.19:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.050)
Temperaturein between
Nearest nameOxford Blue (#1B263B)
Black text1.38:1
White text15.19:1

Values

HEX#311F37
RGBrgb(49, 31, 55)
HSLhsl(285, 28%, 17%)
OKLCHoklch(27.3% 0.05 317.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 #311F37 15.19:1 AAA Lc -104.8 Preferred for body text
Black text on #311F37 1.38:1 Fails Lc 0.0 Not readable
#311F37 text on white 15.19:1 AAA Lc 102.0 Preferred for body text
#311F37 text on black 1.38: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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EFE7F1

    oklch(93.7% 0.016 319.4)

  3. Step 200

    200

    #E2D3E8

    oklch(88.5% 0.033 316.4)

  4. Step 300

    300

    #D1B5DA

    oklch(80.9% 0.06 317.9)

  5. Step 400

    400

    #B98EC7

    oklch(70.7% 0.094 317.7)

  6. Step 500

    500

    #A771B9

    oklch(63.1% 0.12 317.4)

  7. Step 600

    600

    #9258A5

    oklch(55.6% 0.131 317.4)

  8. Step 700

    700

    #7C488D

    oklch(49.1% 0.121 317.4)

  9. Step 800

    800

    #653B73

    oklch(42.7% 0.102 317.2)

  10. Step 900

    900

    #52335D

    oklch(37.6% 0.079 316.8)

  11. Step 950

    950 (this color)

    #311F37

    oklch(27.3% 0.05 317.4)

Export this scale for Tailwind in the Tailwind colors tool

#311F37 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)#1B25380.042
Deuteranopia (no green cones)#2026360.038
Tritanopia (no blue cones)#3122280.033
Achromatopsia (no color)#2626260.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #311F37

    #311F37

    oklch(27.3% 0.05 317.4)

  • #1B2D14

    #1B2D14

    oklch(27.4% 0.05 137.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311F37

    #311F37

    oklch(27.3% 0.05 317.4)

  • #26233E

    #26233E

    oklch(27.3% 0.049 287.8)

  • #391D2C

    #391D2C

    oklch(27.5% 0.049 347.5)

Open the analogous palette in the generator

Split complementary

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

  • #311F37

    #311F37

    oklch(27.3% 0.05 317.4)

  • #2A2908

    #2A2908

    oklch(27.4% 0.05 107.6)

  • #072F22

    #072F22

    oklch(27.4% 0.05 166.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311F37

    #311F37

    oklch(27.3% 0.05 317.4)

  • #342406

    #342406

    oklch(27.3% 0.05 79.5)

  • #002E2F

    #002E2F

    oklch(27.3% 0.046 197.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311F37

    #311F37

    oklch(27.3% 0.05 317.4)

  • #3B1F10

    #3B1F10

    oklch(27.3% 0.05 47.9)

  • #1B2D14

    #1B2D14

    oklch(27.4% 0.05 137.5)

  • #042C3A

    #042C3A

    oklch(27.4% 0.049 226.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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