A dark design can make glossy work look its best, or make a site hard to read. The difference is contrast, the right logo and photo versions, and testing on a phone outside.
In this article 8 sections
A dark website can suit a business whose work looks best against black: detailers, barbers, tattoo studios, photographers, bars and gyms, for example. It works when it’s easy to read, which means avoiding two traps: pure white text on pure black, which glares, and grey text on black, which is too faint. Your logo and photos need dark-friendly versions, and the whole thing needs testing on a phone outside.
“Dark mode” is a slightly different thing: a site that switches between light and dark to match the visitor’s phone or computer setting. This article covers both.
A dark website and dark mode aren’t the same
A dark website is dark for everyone, all the time. That’s a design choice, like choosing your colours.
Dark mode means the site has two colour schemes and picks one based on the visitor’s device. Browsers pass that setting to websites through a feature called prefers-color-scheme, which has worked in all major browsers since January 2020(opens in a new tab).
Phones make the dark setting easy to switch on. Apple brought a system-wide Dark Mode to the iPhone(opens in a new tab) with iOS 13 in 2019, and it can be set to switch on automatically at sunset. On Android, dark theme is a display setting, and Google notes it may turn on automatically when Battery Saver is on(opens in a new tab). So some of your visitors are in dark mode without having thought about it.
A site doesn’t change just because the phone is dark: unless it’s built to follow the setting, it looks the same either way. For most small business sites, one well-made design is enough. Supporting both means designing and testing every page twice.
When a dark design suits a business
This is a judgement call, not a rule. A dark design tends to suit businesses where:
- The work is visual and glossy. Paint correction, tattoos, haircuts, food photography and cars often look richer against a dark background.
- The brand is already dark. Black signage, black uniforms, a night-time venue.
- The mood matters. Bars, music venues, some gyms and studios.
It tends to be harder work when:
- People need to read a lot. Long service descriptions, policies and articles take more care in a dark design, because any contrast problem is repeated over hundreds of lines.
- There are lots of forms. Form fields, borders and placeholder text often get lost on dark backgrounds.
- Your photos have white backgrounds. Product shots on white turn into glaring bright boxes on a dark page.
If you’re undecided, look at your best ten photos on black and on white. Whichever suits your work is a good hint.
The contrast traps
The accessibility standard WCAG asks for a contrast ratio of at least 4.5 to 1(opens in a new tab) for normal text, and that applies to dark designs exactly as it does to light ones. Dark sites tend to fail it in two opposite ways.
Pure white on pure black
White on black is the highest contrast possible, 21 to 1. That sounds ideal, but on a bright screen in a dark room it can glare, especially in long passages. Thomas Steiner’s guide to dark mode on web.dev says he avoids pure white so text doesn’t seem to glow and bleed against the dark background(opens in a new tab).
The usual fix is an off-white for text and a very dark grey for the background. #E0E0E0 on #121212 still has a contrast ratio of about 14 to 1, far above the minimum, without the glare.
Grey on black that’s too faint
The opposite mistake happens when designers make secondary text grey to look subtle. On a dark background, mid greys fade fast:
| Text and background | Ratio | For normal text |
|---|---|---|
#555555 on #111111 | 2.53 to 1 | Fails |
#6B7280 on #111827 | 3.67 to 1 | Fails |
#9CA3AF on #111827 | 6.99 to 1 | Passes |
#E0E0E0 on #121212 | 14.19 to 1 | Passes comfortably |
Small grey labels, captions, footer text and form placeholders are where this shows up most. The non-text contrast rule(opens in a new tab) also asks for 3 to 1 on the parts of buttons and form fields people need to see, so a dark input box with a barely visible border on a black page fails too.
Bright accent colours
A very saturated accent colour can look harsh on black, and it may not pass contrast for text either. Often a slightly softer shade of your brand colour reads better on a dark page. Choosing colours for your business website explains how to set up an accent colour and check it.
Logos and photos on dark backgrounds
Logos. A dark logo on a transparent background vanishes on a dark page. You need a reversed (usually white) version for dark backgrounds, and if your site supports dark mode, it should swap logos automatically. The favicon in the browser tab may also sit on a dark tab bar, so check it there. Logo basics for a small business lists the versions to ask your designer for.
Photos. Bright, colourful photos stand out well on dark pages. In dark mode, it can help to tone them down slightly: the same web.dev guide reports that most people surveyed preferred slightly less vibrant images when dark mode is on. Photos with white backgrounds are the problem. Either reshoot them on a darker background, cut them out, or put them in a light card so the white looks intentional.
Icons and diagrams. Black line icons and diagrams with transparent backgrounds disappear. They need light versions, or a colour that’s set by the site’s colour scheme.
Embedded widgets. Booking tools, maps and review widgets from other companies can stay light, which leaves bright blocks in an otherwise dark page. Check each one, and see if it offers a dark option.
Setting it up properly
If you’re supporting dark mode, a few technical details make a big difference. Pass these on to whoever builds your site:
- Use
prefers-color-schemeto apply the dark colours when the visitor has asked for them. - Declare both schemes with the
color-schemeproperty or meta tag, so the browser draws form controls, scrollbars and the page background(opens in a new tab) in matching colours and avoids a white flash while loading. - Follow the device setting first, then offer a light and dark switch that remembers the visitor’s choice. That’s the approach the web.dev guide recommends.
- Define each colour once with a light and a dark value, rather than patching dark mode on top later.
Test it outside, on a phone
A page that looks moody on a laptop indoors can be hard to read in bright sun, and customers don’t always look you up indoors.
- Take your phone outside around midday with normal brightness.
- Read a full paragraph, a caption and the small print in the footer.
- Fill in your contact form. Can you see the field borders and the placeholder text?
- Then try the opposite: in a dark room at night, at low brightness. Does the text glare?
- If you support dark mode, switch your phone between light and dark and check the logo, photos and buttons in both.
Dark mode and accessibility
Neither light nor dark is better for everyone. Some people prefer dark designs, plenty keep everything on the light setting, and the web.dev guide notes that some people need dark mode(opens in a new tab) as an accessibility tool. That’s the best argument for following the visitor’s own setting where you can.
Whichever you choose, the same rules apply: text that meets contrast minimums, form fields you can see, a keyboard focus outline that’s visible against the background, and nothing that relies on colour alone. Website accessibility basics covers the rest.
Frequently asked questions
Does a dark website save battery?
It can, a little. Dark pixels use less power on some phone screens, and Google’s web.dev guide to dark mode(opens in a new tab) cites Android case studies with power savings of up to 60%. But a website someone looks at for a minute or two won’t make much difference to their battery, so treat it as a side effect, not a reason to choose a dark design.
Should my website follow the visitor’s dark mode setting?
If you can support both schemes properly, yes, because it respects what people have chosen. If your budget or timeline only allows one, it’s better to have one design that’s tested and readable than two that are half finished. A dark site can also be the brand itself, in which case it should stay dark.
Is a dark website harder to read?
It doesn’t have to be. Dark designs become hard to read when text is pure white on pure black, when secondary text is a faint grey, or when long passages are set small and pale. With an off-white text colour, a dark grey background, enough contrast and short sections, a dark site can be as readable as a light one.