#31171F

Closest named color: Jet (#212529). oklch(24.5% 0.043 1.1), rgb(49, 23, 31).

Aa

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

About this color

#31171F is a very dark, muted red. In OKLCH its lightness is 24%, its chroma 0.043 and its hue 1°. Its hue sits on the warm side of the wheel. The nearest named color is Jet (#212529), ΔE 0.051 away. White text reads best on it, at 16.49:1.

Hue familyReds
Lightnessvery dark (24%)
Chromamuted (0.043)
Temperaturewarm
Nearest nameJet (#212529)
Black text1.27:1
White text16.49:1

Values

HEX#31171F
RGBrgb(49, 23, 31)
HSLhsl(342, 36%, 14%)
OKLCHoklch(24.5% 0.043 1.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 #31171F 16.49:1 AAA Lc -105.8 Preferred for body text
Black text on #31171F 1.27:1 Fails Lc 0.0 Not readable
#31171F text on white 16.49:1 AAA Lc 103.3 Preferred for body text
#31171F text on black 1.27: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

    #FAF4F5

    oklch(97.2% 0.007 5.6)

  2. Step 100

    100

    #F3E6E9

    oklch(93.6% 0.015 1.6)

  3. Step 200

    200

    #EAD2D8

    oklch(88.5% 0.028 0.7)

  4. Step 300

    300

    #DEB3BE

    oklch(80.8% 0.052 1.2)

  5. Step 400

    400

    #CC8B9D

    oklch(70.7% 0.082 1.3)

  6. Step 500

    500

    #BD6D85

    oklch(63% 0.105 1.3)

  7. Step 600

    600

    #A8546F

    oklch(55.5% 0.114 1.1)

  8. Step 700

    700

    #90445D

    oklch(49.1% 0.106 1)

  9. Step 800

    800

    #75384C

    oklch(42.6% 0.088 0.7)

  10. Step 900

    900

    #5F313F

    oklch(37.7% 0.069 1.5)

  11. Step 950

    950 (this color)

    #31171F

    oklch(24.5% 0.043 1.1)

Export this scale for Tailwind in the Tailwind colors tool

#31171F 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)#1B1C1F0.047
Deuteranopia (no green cones)#21211E0.045
Tritanopia (no blue cones)#35151A0.012
Achromatopsia (no color)#1F1F1F0.044

Harmonies

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

Complementary

The opposite hue (180°).

  • #31171F

    #31171F

    oklch(24.5% 0.043 1.1)

  • #012721

    #012721

    oklch(24.5% 0.044 179.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31171F

    #31171F

    oklch(24.5% 0.043 1.1)

  • #2C182A

    #2C182A

    oklch(24.4% 0.044 330.4)

  • #321813

    #321813

    oklch(24.4% 0.043 31.9)

Open the analogous palette in the generator

Split complementary

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

  • #31171F

    #31171F

    oklch(24.5% 0.043 1.1)

  • #0F2615

    #0F2615

    oklch(24.4% 0.044 150.5)

  • #00262C

    #00262C

    oklch(24.6% 0.043 210.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31171F

    #31171F

    oklch(24.5% 0.043 1.1)

  • #1D230A

    #1D230A

    oklch(24.3% 0.043 120.9)

  • #0A2333

    #0A2333

    oklch(24.5% 0.043 240)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31171F

    #31171F

    oklch(24.5% 0.043 1.1)

  • #281F05

    #281F05

    oklch(24.4% 0.043 90)

  • #012721

    #012721

    oklch(24.5% 0.044 179.7)

  • #191F35

    #191F35

    oklch(24.5% 0.043 271.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31171F 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.