#31271A

Closest named color: Dark Brown (#341C02). oklch(28% 0.027 73.7), rgb(49, 39, 26).

Aa

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

About this color

#31271A is a dark close to neutral grey. In OKLCH its lightness is 28%, its chroma 0.027. It has too little chroma to lean warm or cool. The nearest named color is Dark Brown (#341C02), ΔE 0.039 away. White text reads best on it, at 14.62:1.

Hue familyNeutrals
Lightnessdark (28%)
Chromaclose to neutral grey (0.027)
Temperatureneutral
Nearest nameDark Brown (#341C02)
Black text1.43:1
White text14.62:1

Values

HEX#31271A
RGBrgb(49, 39, 26)
HSLhsl(34, 31%, 15%)
OKLCHoklch(28% 0.027 73.7)

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 #31271A 14.62:1 AAA Lc -104.3 Preferred for body text
Black text on #31271A 1.43:1 Fails Lc 0.0 Not readable
#31271A text on white 14.62:1 AAA Lc 101.4 Preferred for body text
#31271A text on black 1.43: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

    #F7F5F2

    oklch(97.1% 0.005 78.3)

  2. Step 100

    100

    #EEE9E3

    oklch(93.6% 0.01 72.7)

  3. Step 200

    200

    #E0D8CD

    oklch(88.6% 0.017 76.1)

  4. Step 300

    300

    #CDBEAB

    oklch(80.9% 0.031 73.8)

  5. Step 400

    400

    #B49C7E

    oklch(70.6% 0.05 73.1)

  6. Step 500

    500

    #A1845D

    oklch(63.1% 0.065 74.4)

  7. Step 600

    600

    #8C6D43

    oklch(55.6% 0.07 73.9)

  8. Step 700

    700

    #775B35

    oklch(49.1% 0.065 73.8)

  9. Step 800

    800

    #614A2C

    oklch(42.6% 0.054 72.9)

  10. Step 900

    900

    #4F3E28

    oklch(37.6% 0.042 73.2)

  11. Step 950

    950 (this color)

    #31271A

    oklch(28% 0.027 73.7)

Export this scale for Tailwind in the Tailwind colors tool

#31271A 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)#2B27190.012
Deuteranopia (no green cones)#2D2A1A0.012
Tritanopia (no blue cones)#3524240.024
Achromatopsia (no color)#2929290.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #31271A

    #31271A

    oklch(28% 0.027 73.7)

  • #202A36

    #202A36

    oklch(28.1% 0.026 253.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31271A

    #31271A

    oklch(28% 0.027 73.7)

  • #34251E

    #34251E

    oklch(28% 0.026 46.2)

  • #2B2A1A

    #2B2A1A

    oklch(28.1% 0.027 105)

Open the analogous palette in the generator

Split complementary

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

  • #31271A

    #31271A

    oklch(28% 0.027 73.7)

  • #1A2C33

    #1A2C33

    oklch(28.1% 0.027 224.5)

  • #272736

    #272736

    oklch(28% 0.027 284.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31271A

    #31271A

    oklch(28% 0.027 73.7)

  • #182D2D

    #182D2D

    oklch(28% 0.027 195.7)

  • #2E2532

    #2E2532

    oklch(28% 0.027 315.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31271A

    #31271A

    oklch(28% 0.027 73.7)

  • #1C2D25

    #1C2D25

    oklch(27.9% 0.027 163.7)

  • #202A36

    #202A36

    oklch(28.1% 0.026 253.3)

  • #33242C

    #33242C

    oklch(28.1% 0.026 345.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31271A 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.