#31171C

Closest named color: Dark Brown (#341C02). oklch(24.3% 0.042 8.4), rgb(49, 23, 28).

Aa

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

About this color

#31171C is a very dark, muted red. In OKLCH its lightness is 24%, its chroma 0.042 and its hue 8°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Brown (#341C02), ΔE 0.048 away. White text reads best on it, at 16.53:1.

Hue familyReds
Lightnessvery dark (24%)
Chromamuted (0.042)
Temperaturewarm
Nearest nameDark Brown (#341C02)
Black text1.26:1
White text16.53:1

Values

HEX#31171C
RGBrgb(49, 23, 28)
HSLhsl(348, 36%, 14%)
OKLCHoklch(24.3% 0.042 8.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 #31171C 16.53:1 AAA Lc -105.8 Preferred for body text
Black text on #31171C 1.26:1 Fails Lc 0.0 Not readable
#31171C text on white 16.53:1 AAA Lc 103.3 Preferred for body text
#31171C text on black 1.26: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

    #FAF4F4

    oklch(97.2% 0.006 17.3)

  2. Step 100

    100

    #F3E6E8

    oklch(93.6% 0.014 6.7)

  3. Step 200

    200

    #EBD2D5

    oklch(88.5% 0.028 9.4)

  4. Step 300

    300

    #DFB4BA

    oklch(81% 0.05 8.8)

  5. Step 400

    400

    #CD8C97

    oklch(70.8% 0.08 8.2)

  6. Step 500

    500

    #BE6E7D

    oklch(63.1% 0.103 8.4)

  7. Step 600

    600

    #A95566

    oklch(55.6% 0.111 8.6)

  8. Step 700

    700

    #914555

    oklch(49.1% 0.104 8.4)

  9. Step 800

    800

    #763946

    oklch(42.7% 0.086 7.9)

  10. Step 900

    900

    #5F323A

    oklch(37.7% 0.066 9.3)

  11. Step 950

    950 (this color)

    #31171C

    oklch(24.3% 0.042 8.4)

Export this scale for Tailwind in the Tailwind colors tool

#31171C 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)#1C1C1C0.046
Deuteranopia (no green cones)#22211B0.044
Tritanopia (no blue cones)#3515190.010
Achromatopsia (no color)#1F1F1F0.043

Harmonies

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

Complementary

The opposite hue (180°).

  • #31171C

    #31171C

    oklch(24.3% 0.042 8.4)

  • #002624

    #002624

    oklch(24.2% 0.042 189.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31171C

    #31171C

    oklch(24.3% 0.042 8.4)

  • #2D1827

    #2D1827

    oklch(24.4% 0.042 338.2)

  • #311811

    #311811

    oklch(24.2% 0.043 36.5)

Open the analogous palette in the generator

Split complementary

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

  • #31171C

    #31171C

    oklch(24.3% 0.042 8.4)

  • #0B2618

    #0B2618

    oklch(24.3% 0.043 158.2)

  • #02252D

    #02252D

    oklch(24.4% 0.042 216.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31171C

    #31171C

    oklch(24.3% 0.042 8.4)

  • #1A240D

    #1A240D

    oklch(24.4% 0.042 128.5)

  • #0E2233

    #0E2233

    oklch(24.4% 0.042 246.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31171C

    #31171C

    oklch(24.3% 0.042 8.4)

  • #252006

    #252006

    oklch(24.3% 0.042 98.5)

  • #002624

    #002624

    oklch(24.2% 0.042 189.5)

  • #1C1E34

    #1C1E34

    oklch(24.5% 0.042 278.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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