#331F18

Closest named color: Dark Brown (#341C02). oklch(26.3% 0.034 40.1), rgb(51, 31, 24).

Aa

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

About this color

#331F18 is a dark, muted brown. In OKLCH its lightness is 26%, its chroma 0.034 and its hue 40°. Its hue sits on the warm side of the wheel. The nearest named color is Dark Brown (#341C02), ΔE 0.029 away. White text reads best on it, at 15.55:1.

Hue familyBrowns
Lightnessdark (26%)
Chromamuted (0.034)
Temperaturewarm
Nearest nameDark Brown (#341C02)
Black text1.34:1
White text15.55:1

Values

HEX#331F18
RGBrgb(51, 31, 24)
HSLhsl(16, 36%, 15%)
OKLCHoklch(26.3% 0.034 40.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 #331F18 15.55:1 AAA Lc -105.1 Preferred for body text
Black text on #331F18 1.34:1 Fails Lc 0.0 Not readable
#331F18 text on white 15.55:1 AAA Lc 102.4 Preferred for body text
#331F18 text on black 1.34: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

    #F9F4F3

    oklch(97.1% 0.006 31.1)

  2. Step 100

    100

    #F1E7E4

    oklch(93.5% 0.012 37.4)

  3. Step 200

    200

    #E7D5CE

    oklch(88.6% 0.022 42.6)

  4. Step 300

    300

    #D9B9AD

    oklch(81% 0.041 41.6)

  5. Step 400

    400

    #C49382

    oklch(70.6% 0.064 40)

  6. Step 500

    500

    #B57863

    oklch(63.1% 0.083 39.8)

  7. Step 600

    600

    #A0604A

    oklch(55.6% 0.09 39.7)

  8. Step 700

    700

    #894F3B

    oklch(49.1% 0.084 39.7)

  9. Step 800

    800

    #6F4131

    oklch(42.6% 0.069 39.9)

  10. Step 900

    900

    #5A382B

    oklch(37.8% 0.053 41.7)

  11. Step 950

    950 (this color)

    #331F18

    oklch(26.3% 0.034 40.1)

Export this scale for Tailwind in the Tailwind colors tool

#331F18 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)#2421170.031
Deuteranopia (no green cones)#2925180.027
Tritanopia (no blue cones)#381C1D0.018
Achromatopsia (no color)#2424240.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #331F18

    #331F18

    oklch(26.3% 0.034 40.1)

  • #0F2930

    #0F2930

    oklch(26.4% 0.034 217.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #331F18

    #331F18

    oklch(26.3% 0.034 40.1)

  • #331E21

    #331E21

    oklch(26.3% 0.033 10.2)

  • #2F2212

    #2F2212

    oklch(26.3% 0.033 71.3)

Open the analogous palette in the generator

Split complementary

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

  • #331F18

    #331F18

    oklch(26.3% 0.034 40.1)

  • #0E2A28

    #0E2A28

    oklch(26.3% 0.034 189)

  • #182635

    #182635

    oklch(26.3% 0.034 250.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #331F18

    #331F18

    oklch(26.3% 0.034 40.1)

  • #152A1F

    #152A1F

    oklch(26.3% 0.034 159.9)

  • #212335

    #212335

    oklch(26.3% 0.034 278.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #331F18

    #331F18

    oklch(26.3% 0.034 40.1)

  • #1F2816

    #1F2816

    oklch(26.2% 0.034 130.1)

  • #0F2930

    #0F2930

    oklch(26.4% 0.034 217.9)

  • #2A2031

    #2A2031

    oklch(26.3% 0.034 310.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #331F18 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.