Darken a Hex Color

Enter a hex code and drag the slider to darken it by an exact percentage. The darker hex code updates live and copies in one click. Need the opposite? Use the lighten color tool.

Darken a color

20%
#24553f
Want every step at once? The shade generator builds the full darker ramp of any color, and the color scale generator adds hue and chroma scales on top.

How Darkening a Color Works

Darkening blends each RGB channel toward black. For a chosen percentage p (0–1), each channel becomes:

new = old × (1 − p)

20% darken of #2D6A4F — rgb(45, 106, 79):
 ├─ R: 45  × 0.8 =  36
 ├─ G: 106 × 0.8 =  85
 └─ B: 79  × 0.8 =  63

Result: rgb(36, 85, 63) = #24553F

This is the classic shade formula — a darkened color is a shade. Because every channel shrinks by the same factor, the hue stays stable and the result reads as a deeper version of the same color rather than a different one.

Every 10% Step of #2D6A4F, Darkened

DarkenResultHex
10%#295F47
20%#24553F
30%#1F4A37
40%#1B402F
50%#173528
60%#122A20
70%#0E2018
80%#091510
90%#040B08

The same ramp for any color is precomputed in the color library — for example #2D6A4F, #1E3A5F, or Tailwind's red-600.

When to Darken a Color

Darken a Color in CSS

You don't always need to hard-code the darker hex — modern CSS can derive it:

/* color-mix(): 20% darker (mix 80% color with 20% black) */
background: color-mix(in srgb, #2d6a4f 80%, black);

/* Relative color syntax: lower HSL lightness by 20 points */
background: hsl(from #2d6a4f h s calc(l - 20));

/* Sass */
background: color.scale(#2d6a4f, $lightness: -20%);

Hard-coded hex values from the tool above are still the right call for design tokens, emails, and anywhere you need the exact value once. For the full CSS/JS playbook, read how to lighten or darken a color in CSS.

Frequently Asked Questions

Related tools: lighten a color · shade generator · tint and shade generator · hex to RGB converter · contrast checker

Got your darker color? Put it to work on a page that's yours — create your free MinglyLink page →