Dark Colors (Hex Codes + Darken Tool)

18 dark colours with hex codes, from charcoal and navy to forest, oxblood and aubergine, each with its WCAG contrast for white text. Start from one of them or your own colour and the tool darkens it to the lightness you pick while keeping its hue and as much of its chroma as the screen can show, so a soft pink becomes a deep rose rather than a muddy grey-brown. Side by side, you see the same lightness reached by mixing in black. Each result comes with a 5-colour palette, the text colour that reads on every swatch, and copy as hex, CSS variables or JSON, or a PNG card.

100% private — everything runs in your browser. Nothing you type is uploaded.

100% private — runs in your browser

Darken two ways

Hue and chroma kept (this tool)

Mixed with black

Same lightness in each column. Mixing in black lowers chroma as fast as lightness, so pale colours turn grey on the way down.

Palette with readable text

Export

Start colour

Dark colours

Dark here means OKLCH lightness under 40 %. Very dark yellows and light greens always read as olive or brown: screens cannot show a dark, vivid yellow.

Runs in your browser with our own code: nothing is uploaded or saved. Colour names are our own. You may use what you make here, including commercially, with no credit needed.

How to darken a colour and check its text

  1. Pick a dark colour from the menu or tap a swatch. For any other colour, choose Your own colour and type a HEX code or use the colour picker.
  2. Choose how dark: only if needed (to 34 % lightness when the colour is not dark yet) or a set lightness from 36 % down to 18 %.
  3. Compare the two rows under Darken two ways: the top row keeps hue and chroma, the bottom row mixes in black.
  4. Read the white and black text contrast, then copy the palette as a hex list, CSS variables or JSON, copy the HEX, or download a PNG palette card.

What you can use it for

  • Pick a dark background for a website, app or dark mode screen
  • Find a deep version of a brand colour for headings, footers or buttons
  • Check that white text is readable on a dark colour before you use it
  • Build a moody palette for a bedroom, office or poster
  • Copy dark hex codes as CSS variables for a theme

Dark colour hex codes

NameHEXRGBOKLCH lightnessWhite textReads better with
Charcoal#2B2D3043, 45, 4830 %13.80:1 (AAA)White
Navy#1B2A4A27, 42, 7429 %14.22:1 (AAA)White
Forest#1F3B2C31, 59, 4432 %12.20:1 (AAA)White
Oxblood#4A141974, 20, 2528 %14.94:1 (AAA)White
Aubergine#3B1E3F59, 30, 6329 %14.54:1 (AAA)White
Midnight blue#141E3C20, 30, 6024 %16.39:1 (AAA)White
Espresso#2E1F1846, 31, 2426 %15.84:1 (AAA)White
Ink#1A1F2B26, 31, 4324 %16.47:1 (AAA)White
Bottle green#0F3B2E15, 59, 4632 %12.46:1 (AAA)White
Deep teal#0E3B4314, 59, 6733 %12.17:1 (AAA)White
Plum#4B1F4575, 31, 6932 %13.28:1 (AAA)White
Graphite#33363B51, 54, 5933 %12.12:1 (AAA)White
Mahogany#4A1E1474, 30, 2030 %14.12:1 (AAA)White
Pine#173B3023, 59, 4832 %12.31:1 (AAA)White
Wine#4F132879, 19, 4030 %14.42:1 (AAA)White
Indigo night#23215335, 33, 8328 %14.85:1 (AAA)White
Olive black#2C2E1E44, 46, 3029 %13.84:1 (AAA)White
Cocoa#3D2A2261, 42, 3431 %13.52:1 (AAA)White

Names and values are our own. Every colour here is under 40 % OKLCH lightness and passes WCAG AAA with white text.

Darken without going muddy

LightnessHue and chroma kept (this tool)Mixed with black
36 %#513434 (chroma 0.042)#4A3838 (chroma 0.026)
30 %#3E2727 (chroma 0.035)#382A2A (chroma 0.021)
24 %#2B1A1A (chroma 0.027)#271C1C (chroma 0.017)
18 %#1A0E0E (chroma 0.021)#170F0F (chroma 0.014)

Example: Dusty rose #C49A9A (chroma 0.050). At every lightness the tool’s version keeps more chroma, so it stays a deep rose; the black mix drifts towards grey-brown.

How this page sorts colours

KindRule (OKLCH)
DarkOKLCH lightness under 40 %, whatever the chroma
BrightLightness 55 % to 92 %, chroma at least 0.08, and 55 % to just under 85 % of the most chroma a screen can show at that lightness and hue
NeonLightness 40 % or more, chroma at least 0.08 and 85 % or more of that maximum (the same rule as the Neon Colors tool)
MutedLightness 40 % to 90 % and chroma 0.015 to 0.075: a hint of hue, well short of vivid
Grey or near-greyLightness 40 % or more and chroma under 0.015
In betweenAnything else, such as rich mid-tones and pale tints

Each colour gets one kind only: the rules do not overlap, so no colour can be both dark and muted, or bright and neon. OKLCH is a perceptual colour space (lightness, chroma, hue), so equal steps look roughly equal to the eye; “chroma” is how far a colour is from grey.

ColourHEXLightnessChromaShare of max chromaKind
Pure red#FF000063 %0.258100 %Neon
Tomato (bright list)#EC554265 %0.19080 %Bright
Neon green#39FF1487 %0.286100 %Neon
Grass green (bright list)#47B75069 %0.17580 %Bright
Pure cyan#00FFFF91 %0.155100 %Neon
Turquoise (bright list)#4DBBB573 %0.10080 %Bright
Navy (dark list)#1B2A4A29 %0.06237 %Dark
Dusty rose (muted list)#C49A9A73 %0.05029 %Muted
Mid grey#80808060 %0.0000 %Grey or near-grey

Which tool to use

You wantUse
Dark hex codes, darken any colour, text contrastDark Colors (this page)
Ready-made dark palettes with ideasDark Color Palette (article)
Vivid colours that print wellBright Colors
Soft, dusty coloursMuted Colors
A full ramp of lighter and darker shadesColor Shades Generator
Contrast between any two coloursContrast Checker
A dark wallpaper or background imageDark Background

For ready-made dark schemes, read our dark color palette ideas. For the opposite ends, try Bright Colors and Muted Colors. To test any text and background pair, use the Contrast Checker; for a long ramp of tints and shades, the Color Shades Generator; for a dark image at your screen size, Dark Background; and for warm or cool greys, Neutral Colors.

Sources for the maths: Björn Ottosson, “A perceptual color space for image processing” (OKLab, 2020); W3C CSS Color Module Level 4 (oklch(), CIELAB D50); W3C WCAG 2.2, contrast (minimum); G. Sharma, W. Wu and E. N. Dalal, “The CIEDE2000 color-difference formula”.

More free tools

More colour tools?

Colour tools that run privately in your browser, with no sign-up.

See all free tools →

Frequently asked questions

What counts as a dark colour?

On this page a colour is dark when its OKLCH lightness is under 40 %. OKLCH lightness follows what the eye sees, so a dark blue and a dark yellow at 30 % look about as dark as each other, which plain RGB numbers do not tell you.

What are the hex codes for dark colours?

The table above lists our 18: for example Charcoal #2B2D30, Navy #1B2A4A, Forest #1F3B2C, Oxblood #4A1419, Aubergine #3B1E3F, Midnight blue #141E3C and Espresso #2E1F18. Tap any of them in the tool to copy its HEX or build a palette from it.

Why do some dark colours look muddy?

Mixing in black lowers chroma at the same rate as lightness, so a pale or soft colour turns grey on the way down. This tool keeps the colour’s share of chroma instead (never less than the black mix), which keeps deep colours rich. Yellows and light greens are the exception: a dark yellow always reads as olive or brown, because screens cannot show a dark, vivid yellow.

What text colour works on a dark background?

White or a very light tint. Every dark colour in the table passes WCAG AAA (7:1) with white text; the lowest is 12.12:1. Navy #1B2A4A gives 14.22:1. Black text fails on all of them.

What do the contrast numbers mean?

They are WCAG 2.x contrast ratios between the colour and white or black text. 4.5:1 is the AA level for normal text, 3:1 for large text, and 7:1 is AAA. The tool rounds down, so 4.49:1 is shown as 4.49 and does not pass AA.

Is a dark colour the same as black?

No. Black is #000000. Dark colours still have a hue you can see, such as the blue in navy or the red in oxblood, which is why many designers use a deep colour instead of pure black for backgrounds and text.

How is the palette made?

Around the dark version: the base, a deeper step (lightness − 8 %), a lifted step (+ 8 %, still dark), a neighbour with the hue turned 30°, and a light text colour. Each swatch shows whether white or black text reads better on it, with the ratio.

Can I use these colours commercially?

Yes. The names and values are our own, and you may use them and anything you make here, including commercially, with no credit needed.

Is anything uploaded?

No. The tool runs in your browser with our own code; nothing you type is uploaded or saved.