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.
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
- 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.
- 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 %.
- Compare the two rows under Darken two ways: the top row keeps hue and chroma, the bottom row mixes in black.
- 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
| Name | HEX | RGB | OKLCH lightness | White text | Reads better with |
|---|---|---|---|---|---|
| Charcoal | #2B2D30 | 43, 45, 48 | 30 % | 13.80:1 (AAA) | White |
| Navy | #1B2A4A | 27, 42, 74 | 29 % | 14.22:1 (AAA) | White |
| Forest | #1F3B2C | 31, 59, 44 | 32 % | 12.20:1 (AAA) | White |
| Oxblood | #4A1419 | 74, 20, 25 | 28 % | 14.94:1 (AAA) | White |
| Aubergine | #3B1E3F | 59, 30, 63 | 29 % | 14.54:1 (AAA) | White |
| Midnight blue | #141E3C | 20, 30, 60 | 24 % | 16.39:1 (AAA) | White |
| Espresso | #2E1F18 | 46, 31, 24 | 26 % | 15.84:1 (AAA) | White |
| Ink | #1A1F2B | 26, 31, 43 | 24 % | 16.47:1 (AAA) | White |
| Bottle green | #0F3B2E | 15, 59, 46 | 32 % | 12.46:1 (AAA) | White |
| Deep teal | #0E3B43 | 14, 59, 67 | 33 % | 12.17:1 (AAA) | White |
| Plum | #4B1F45 | 75, 31, 69 | 32 % | 13.28:1 (AAA) | White |
| Graphite | #33363B | 51, 54, 59 | 33 % | 12.12:1 (AAA) | White |
| Mahogany | #4A1E14 | 74, 30, 20 | 30 % | 14.12:1 (AAA) | White |
| Pine | #173B30 | 23, 59, 48 | 32 % | 12.31:1 (AAA) | White |
| Wine | #4F1328 | 79, 19, 40 | 30 % | 14.42:1 (AAA) | White |
| Indigo night | #232153 | 35, 33, 83 | 28 % | 14.85:1 (AAA) | White |
| Olive black | #2C2E1E | 44, 46, 30 | 29 % | 13.84:1 (AAA) | White |
| Cocoa | #3D2A22 | 61, 42, 34 | 31 % | 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
| Lightness | Hue 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
| Kind | Rule (OKLCH) |
|---|---|
| Dark | OKLCH lightness under 40 %, whatever the chroma |
| Bright | Lightness 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 |
| Neon | Lightness 40 % or more, chroma at least 0.08 and 85 % or more of that maximum (the same rule as the Neon Colors tool) |
| Muted | Lightness 40 % to 90 % and chroma 0.015 to 0.075: a hint of hue, well short of vivid |
| Grey or near-grey | Lightness 40 % or more and chroma under 0.015 |
| In between | Anything 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.
| Colour | HEX | Lightness | Chroma | Share of max chroma | Kind |
|---|---|---|---|---|---|
| Pure red | #FF0000 | 63 % | 0.258 | 100 % | Neon |
| Tomato (bright list) | #EC5542 | 65 % | 0.190 | 80 % | Bright |
| Neon green | #39FF14 | 87 % | 0.286 | 100 % | Neon |
| Grass green (bright list) | #47B750 | 69 % | 0.175 | 80 % | Bright |
| Pure cyan | #00FFFF | 91 % | 0.155 | 100 % | Neon |
| Turquoise (bright list) | #4DBBB5 | 73 % | 0.100 | 80 % | Bright |
| Navy (dark list) | #1B2A4A | 29 % | 0.062 | 37 % | Dark |
| Dusty rose (muted list) | #C49A9A | 73 % | 0.050 | 29 % | Muted |
| Mid grey | #808080 | 60 % | 0.000 | 0 % | Grey or near-grey |
Which tool to use
| You want | Use |
|---|---|
| Dark hex codes, darken any colour, text contrast | Dark Colors (this page) |
| Ready-made dark palettes with ideas | Dark Color Palette (article) |
| Vivid colours that print well | Bright Colors |
| Soft, dusty colours | Muted Colors |
| A full ramp of lighter and darker shades | Color Shades Generator |
| Contrast between any two colours | Contrast Checker |
| A dark wallpaper or background image | Dark 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.