#310817

Closest named color: Dark Maroon (#3C0008). oklch(21.6% 0.068 2.3), rgb(49, 8, 23).

Aa

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

About this color

#310817 is a very dark, muted red. In OKLCH its lightness is 22%, its chroma 0.068 and its hue 2°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Maroon (#3C0008), ΔE 0.035 away. White text reads best on it, at 17.83:1.

Hue familyReds
Lightnessvery dark (22%)
Chromamuted (0.068)
Temperaturewarm
Nearest nameDark Maroon (#3C0008)
Black text1.17:1
White text17.83:1

Values

HEX#310817
RGBrgb(49, 8, 23)
HSLhsl(338, 72%, 11%)
OKLCHoklch(21.6% 0.068 2.3)

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 #310817 17.83:1 AAA Lc -106.5 Preferred for body text
Black text on #310817 1.17:1 Fails Lc 0.0 Not readable
#310817 text on white 17.83:1 AAA Lc 104.2 Preferred for body text
#310817 text on black 1.17: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

    #FCF3F5

    oklch(97.2% 0.01 2)

  2. Step 100

    100

    #F8E4E8

    oklch(93.6% 0.022 3.8)

  3. Step 200

    200

    #F4CED6

    oklch(88.6% 0.044 3.8)

  4. Step 300

    300

    #EDABBC

    oklch(80.8% 0.08 2.1)

  5. Step 400

    400

    #E17C9A

    oklch(70.6% 0.129 1.9)

  6. Step 500

    500

    #D65781

    oklch(63.1% 0.164 2.4)

  7. Step 600

    600

    #C1376B

    oklch(55.6% 0.178 2.1)

  8. Step 700

    700

    #A62859

    oklch(49.1% 0.165 2.2)

  9. Step 800

    800

    #872349

    oklch(42.7% 0.138 2)

  10. Step 900

    900

    #6D233D

    oklch(37.7% 0.108 2.1)

  11. Step 950

    950 (this color)

    #310817

    oklch(21.6% 0.068 2.3)

Export this scale for Tailwind in the Tailwind colors tool

#310817 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)#1112170.075
Deuteranopia (no green cones)#1C1A160.067
Tritanopia (no blue cones)#36040E0.019
Achromatopsia (no color)#1818180.068

Harmonies

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

Complementary

The opposite hue (180°).

  • #310817

    #310817

    oklch(21.6% 0.068 2.3)

  • #001F1B

    #001F1B

    oklch(21.5% 0.038 182.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310817

    #310817

    oklch(21.6% 0.068 2.3)

  • #2B0B27

    #2B0B27

    oklch(21.7% 0.068 332.8)

  • #320904

    #320904

    oklch(21.4% 0.068 31.8)

Open the analogous palette in the generator

Split complementary

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

  • #310817

    #310817

    oklch(21.6% 0.068 2.3)

  • #00210C

    #00210C

    oklch(21.7% 0.057 152.3)

  • #001E24

    #001E24

    oklch(21.6% 0.038 213)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310817

    #310817

    oklch(21.6% 0.068 2.3)

  • #161D00

    #161D00

    oklch(21.6% 0.052 121.4)

  • #001C2F

    #001C2F

    oklch(21.7% 0.051 241.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310817

    #310817

    oklch(21.6% 0.068 2.3)

  • #211900

    #211900

    oklch(21.7% 0.044 92.8)

  • #001F1B

    #001F1B

    oklch(21.5% 0.038 182.9)

  • #101638

    #101638

    oklch(21.7% 0.066 272.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #310817 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.