#31040B

Closest named color: Dark Maroon (#3C0008). oklch(20.6% 0.072 16.8), rgb(49, 4, 11).

Aa

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

About this color

#31040B is a very dark, moderately saturated red. In OKLCH its lightness is 21%, its chroma 0.072 and its hue 17°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Maroon (#3C0008), ΔE 0.027 away. White text reads best on it, at 18.21:1.

Hue familyReds
Lightnessvery dark (21%)
Chromamoderately saturated (0.072)
Temperaturewarm
Nearest nameDark Maroon (#3C0008)
Black text1.15:1
White text18.21:1

Values

HEX#31040B
RGBrgb(49, 4, 11)
HSLhsl(351, 85%, 10%)
OKLCHoklch(20.6% 0.072 16.8)

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 #31040B 18.21:1 AAA Lc -106.6 Preferred for body text
Black text on #31040B 1.15:1 Fails Lc 0.0 Not readable
#31040B text on white 18.21:1 AAA Lc 104.3 Preferred for body text
#31040B text on black 1.15: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

    #FDF3F3

    oklch(97.2% 0.011 17.3)

  2. Step 100

    100

    #FAE4E4

    oklch(93.7% 0.024 17.6)

  3. Step 200

    200

    #F7CDCE

    oklch(88.5% 0.048 16.5)

  4. Step 300

    300

    #F3AAAD

    oklch(80.8% 0.086 16.4)

  5. Step 400

    400

    #E97A82

    oklch(70.7% 0.137 16.7)

  6. Step 500

    500

    #DF5263

    oklch(63.1% 0.175 16.6)

  7. Step 600

    600

    #CA2F4A

    oklch(55.6% 0.19 16.8)

  8. Step 700

    700

    #AE1E3B

    oklch(49% 0.177 16.7)

  9. Step 800

    800

    #8D1D31

    oklch(42.6% 0.146 16.7)

  10. Step 900

    900

    #72202B

    oklch(37.7% 0.114 17)

  11. Step 950

    950 (this color)

    #31040B

    oklch(20.6% 0.072 16.8)

Export this scale for Tailwind in the Tailwind colors tool

#31040B 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)#100F0B0.081
Deuteranopia (no green cones)#1C190A0.074
Tritanopia (no blue cones)#3700070.016
Achromatopsia (no color)#1515150.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #31040B

    #31040B

    oklch(20.6% 0.072 16.8)

  • #001C1D

    #001C1D

    oklch(20.6% 0.035 198)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31040B

    #31040B

    oklch(20.6% 0.072 16.8)

  • #2D051E

    #2D051E

    oklch(20.6% 0.073 346.6)

  • #2B0D00

    #2B0D00

    oklch(20.6% 0.057 47.3)

Open the analogous palette in the generator

Split complementary

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

  • #31040B

    #31040B

    oklch(20.6% 0.072 16.8)

  • #001D13

    #001D13

    oklch(20.5% 0.042 167.1)

  • #001B25

    #001B25

    oklch(20.7% 0.039 225.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31040B

    #31040B

    oklch(20.6% 0.072 16.8)

  • #081D00

    #081D00

    oklch(20.5% 0.062 136.5)

  • #001637

    #001637

    oklch(20.6% 0.072 256.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31040B

    #31040B

    oklch(20.6% 0.072 16.8)

  • #1A1800

    #1A1800

    oklch(20.5% 0.044 105.5)

  • #001C1D

    #001C1D

    oklch(20.6% 0.035 198)

  • #170F36

    #170F36

    oklch(20.6% 0.073 287.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31040B 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.