Digital Marketing

Logo Disappears in Dark Mode? How to Make a Dark Theme Logo That Works

Talha Aslan 20 min read 3 views

Short answer

Logo disappears in dark mode: what should you do first?

When a logo disappears in dark mode, a dark logo is sitting on a dark background without enough contrast. The fix is not a filter or a glow. Instead, you keep your main logo for light backgrounds and add a negative or white version for dark ones, then serve the right file in each channel.

Keep reading for the full details and examples

Short answer: find out where the logo vanishes, then measure your logo color against that background with a color contrast checker. If the ratio is low, create a separate dark theme file. On your website, you can show it automatically based on the visitor's theme setting. For email and social media, use a version that works on any background.

In this guide, Talha Aslan and team walk through the case we see most often in the field. We cover why a transparent PNG suddenly vanishes, what changes from app to app, how to measure contrast, and which files to request from your designer. If you are still deciding on dark mode for your whole site, we covered that in whether you should add dark mode to your website. Here we focus only on the logo.

Is the problem really your logo, or the screen around it?

Start with a diagnosis, because the same symptom can have three different causes. Your logo file may be fine; however, a device or app can still change colors by its own rules. On the other hand, the file itself may assume a white background. If you skip this step, you may end up fixing the wrong thing.

  • File problem: the logo is dark and the background is transparent. It looks great on white and fades on black. This is the most common case.
  • App problem: in some email apps or browsers, the logo looks inverted, washed out, or tinted. Here the file is fine, but the app interferes.
  • Design problem: the logo already uses low contrast colors. It looks weak on white too, and it vanishes completely on dark backgrounds.

So try a quick test first. Place your logo on white, light gray, dark gray, and black, and look at all four side by side. If it only fails on the dark ones, you have a file problem, and the variation method in this guide will help. If your phone's dark mode also scrambles your site's other colors, the issue goes beyond the logo. In that case, read our guide on how phone dark mode breaks website colors.

Why does a transparent PNG vanish on a dark background?

A transparent PNG carries no background color of its own, so the logo disappears in dark mode the moment the background turns black. In other words, the logo borrows the color of whatever sits behind it. Your designer most likely built the file on a white canvas, so a navy, black, or dark brown logo looked perfect there. However, once that file lands in a dark themed app, the background turns almost black, and two dark colors meet.

The interesting part, however, is that nothing is wrong with the file itself. The real issue is that it assumes a single background. That is why fixes like "send us a higher resolution logo" do not help. Sharpness improves, but contrast stays the same. If you are actually dealing with a soft or pixelated logo, that is a different issue, and our guide on a blurry logo on your website explains it.

Because the cause is unclear, some teams take a shortcut and add a white outline or glow around the logo. That makes it stand out, but it often distorts the brand's shapes. At small sizes, it also leaves a fuzzy, dirty edge. There is a cleaner route: a separate version that you design for dark backgrounds from the start.

Where does a logo disappear in dark mode most often?

Dark mode is no longer a single setting. Your phone, browser, email app, and messaging app can each offer their own dark look. As a result, the same logo can look flawless in one place and vanish in another. These are the places that generate the most complaints in our work:

  • WhatsApp and other messaging apps: a logo with a transparent background, sent as an image, can disappear against a dark chat background.
  • Gmail and other email apps: the logo in your signature or newsletter header meets a different background in dark view. Some apps also adjust colors by their own rules.
  • Instagram Stories and post templates: a dark logo on top of a dark photo becomes impossible to read.
  • System wide dark mode on phones: when your site's header turns dark, the transparent logo sits on the new background.

Instead of patching each of these one by one, the lasting fix is a logo system. When a short rule says which file goes on which background, your team, agency, or printer stops repeating the same mistake. If you plan logo versions, color rules, and usage separately, the problem returns with every new channel. This is where professional brand identity design makes a difference, because you receive the logo as a set that works across backgrounds, not as a single file.

What is a contrast ratio, and what does it mean for a logo?

A contrast ratio is a number that describes the difference in relative luminance between two colors. The W3C's Web Content Accessibility Guidelines (WCAG 2.2) define it as (L1 + 0.05) / (L2 + 0.05). L1 is the relative luminance of the lighter color, and L2 is that of the darker one. Ratios range from 1:1 to 21:1. A ratio of 1:1 means identical colors, while 21:1 is pure black against pure white.

There is also an important detail here. The W3C's Understanding page for 1.4.3 Contrast (Minimum) sets 4.5:1 for regular text and 3:1 for large text. However, text that is part of a logo or brand name has no contrast requirement. Criterion 1.4.11, Non-text Contrast, sets 3:1 for graphical objects, and it also exempts logos.

So does the exemption mean you can ignore contrast? No. It rests on the assumption that brand rules already govern color choices strictly. If people cannot see your logo, they cannot recognize your brand either, so these thresholds still make useful targets. When we review logo versions, we treat the 3:1 threshold for non-text graphics as a practical starting line. If the logo includes a small tagline, we aim for 4.5:1. That is a working rule we chose for legibility, not a legal requirement.

Logo disappears in dark mode: how do you fix it step by step?

Follow this order and you will solve the problem once, instead of fighting it in every new channel. Each step builds on the previous one, so we recommend that you do not skip ahead.

  1. Take inventory. List every place your logo appears: site header, footer, favicon, email signature, newsletter, social profiles, story templates, slide decks, and invoices.
  2. Map the backgrounds. Note the color behind the logo in each channel. Mark the channels that support dark mode.
  3. Measure contrast. Compare your logo's main color with each dark background and record the ratio.
  4. Choose a version. For backgrounds with a weak ratio, pick a negative, all white, or single color version.
  5. Produce the files. Build the chosen version as a vector first, then export the formats you need.
  6. Place them. Set up the automatic switch on your website, and pick the right file manually everywhere else.
  7. Test. Check light and dark mode, on phone and desktop, in at least two email apps.
  8. Write the rule. Add a one page note that says which file goes on which background.

In practice, you can do most of these steps yourself. People usually get stuck at steps four and five. Deciding whether a new version still carries the brand's character takes design experience.

How do you measure your logo color against the background?

You do not need design software for this. Open our free tool to check color contrast, enter your logo's main hex code as the foreground, and enter the dark background's hex code as the background. The tool then calculates the ratio and shows which thresholds it passes. If you do not know the hex code, you can look it up on our HTML color codes page or in your brand guide.

Example calculation: we ran a navy logo (#1B2A4A) against a white background (#FFFFFF) through the WCAG formula and got roughly 14.2:1. So it stands out easily on light backgrounds. Put the same navy on #121212, a background common in dark themes, and the ratio drops to roughly 1.3:1. At that point, the two colors are nearly impossible to tell apart. A white version (#FFFFFF) on the same dark background gives roughly 18.7:1.

Also keep a few details in mind while you measure. If your logo uses several colors, measure each one separately, because the weakest color decides legibility. For gradient logos, measure the darkest end. Also, do not guess the background color; take it from a real screenshot when you can. For a broader look at the topic, our guide on using contrast in design is a good starting point.

Negative, all white, or single color: which logo version should you pick?

You have three main options for dark backgrounds, and each one does a different job. The right choice depends on how your logo is built and where it appears.

  • Negative version: you rebuild the logo's color scheme for dark backgrounds. For example, dark lettering turns light while the accent color stays. This option preserves the most brand character.
  • All white version: every part of the logo turns white. It works on any dark background and on photos. However, you lose any distinction that relied on color.
  • Single light tone: you pick a light shade from your palette and render the whole logo in it. It feels warmer than white, but it will not suit every background.

In practice, we suggest that most businesses use the negative version as their main dark theme logo. The all white version then serves as a backup for photos and video. If your symbol has two colors that touch, check that they still separate in the negative. Otherwise, the symbol can collapse into a single blob.

One more warning, though, because it comes up often: automatic color inversion is not a negative version. Inverting can turn navy lettering into pale yellow and a red accent into cyan. The result is an unrecognizable copy of your brand. A designer should build the version by hand.

How do you add dark theme equivalents to your brand palette?

A logo variation alone, however, is not enough. The buttons, headings, and icons next to the logo also need to come from the same family in dark mode. The way to get there is to assign a dark theme equivalent to each main color in your palette. That way, your designer, developer, and social media team all use the same codes.

So here is a simple method. Measure your main color against a dark background. If the ratio is weak, find a lighter shade of the same hue and measure again. For example, a navy brand might shift to a light sky blue in dark mode. Because the hue stays in the same family, people still recognize the brand. As an example calculation, a light blue such as #6B8CC7 gives roughly 5.5:1 on #121212.

Then write these pairs into your palette document in two columns: "light theme" and "dark theme." Also consider a slightly lighter dark gray instead of pure black as your background. That helps high contrast white elements feel less harsh. If you wonder why your colors also shift in print, that is a separate conversion issue. Our guide on why brand colors look different in print explains Pantone, CMYK, and RGB.

How do you swap the logo with prefers-color-scheme on your website?

Browsers report whether the user prefers a light or dark theme through the prefers-color-scheme media query. The HTML picture element can use that query to load a different file in dark mode. Google's developer resource, the web.dev guide to prefers-color-scheme, also shows images swapping this way.

<picture>
  <source srcset="/img/logo-dark-theme.svg" media="(prefers-color-scheme: dark)">
  <img src="/img/logo.svg" alt="Example Company" width="180" height="48">
</picture>

With this code, the browser loads the file inside source when the user prefers a dark theme. Otherwise, it loads the main logo inside img. The img element always acts as the fallback, so you put the alt text and dimensions there.

Keep one limitation in mind: this method only follows the operating system or browser preference. If your site also offers its own theme toggle, the picture element will not know when someone clicks it. In that case, you need to tie the logo swap to your site's theme class, which we cover in the next section. To keep the rest of your identity consistent across the site, see our guide on applying brand guidelines to a website.

When does an SVG logo with currentColor work better?

If your logo uses a single color and sits in the page as inline SVG, you may not even need two files. Set the SVG fill to currentColor, and the logo inherits the text color around it. Then, when the text color turns light in dark mode, the logo follows on its own.

.site-logo { color: #1B2A4A; }
@media (prefers-color-scheme: dark) {
  .site-logo { color: #FFFFFF; }
}
/* Paths inside the SVG: fill="currentColor" */

As the web.dev guide notes, this approach works for inline SVG. It does not work when you load the SVG file through an img tag or as a CSS background. In those cases, you still need two files and the picture method.

If your site has a theme toggle, switch colors through a class or attribute on the root element instead of the media query. That way, the logo follows whichever theme the user picks. For multicolor logos, currentColor can only control one color, so it usually falls short. In that situation, we recommend keeping the negative version as a separate file.

My logo disappears in dark mode in email signatures: why?

When a logo disappears in dark mode inside an email, the stakes are high. Email is the toughest test for a logo, because you cannot choose the app that opens your message. Some apps darken the background in dark view but leave images untouched. Others adjust colors by their own rules. For that reason, a file that is safe on any background works more reliably than an automatic switch.

For example, two approaches hold up well in practice. The first is to give the logo its own light background, inside a small box with slightly rounded corners, instead of a transparent one. Then, even in dark mode, the logo shows up on its own light area. The second is to add a very thin, light outline that matches your brand colors. The first option looks cleaner and carries less design risk.

If the logo does not appear in the signature at all, the cause is probably not contrast. The image may be blocked, or the link may be broken. For that case, see our fix for an Outlook email signature image not showing. If you want your logo next to the sender name in the inbox, that relies on a separate authentication standard, which we cover in how BIMI shows your logo in Gmail.

What should you do if your favicon vanishes in a dark browser tab?

Then there is the favicon, the small icon in browser tabs and search results. Because it is so tiny, contrast problems become even more obvious. When a dark browser theme darkens the tab bar, a dark favicon with a transparent background can almost disappear.

The safest fix is to design the favicon inside its own square or circle with a solid fill. Then the icon carries its own contrast, whatever color the tab is. Another option is to leave a light area around the symbol. You can also use a media query inside an SVG favicon to change its color. However, browser support can vary, so we recommend that you do not rely on this alone. Keep a PNG with a fixed background as a fallback.

We explain the general rules for scaling a logo down to a symbol in our guide on responsive logo variations. If your favicon does not show in search results at all, the cause is technical rather than contrast related. The details are in favicon not showing in Google search results.

How do you protect your logo on social profiles and Stories?

On social media, your logo lives in two places: the profile picture and your post or Story templates. The profile picture usually causes fewer problems, because the platform displays the image as you uploaded it. You control the background inside the image. So instead of uploading a transparent logo, prepare your logo as a filled square on your brand color or on white.

Story and post templates are different, however, because the background changes every time. A dark logo on a dark photo blends in, and a white logo on a bright photo vanishes too. So give your team a simple rule. If the corner where the logo sits is dark, use the white version. If it is light, use the main logo. For busy photos where nobody can decide, place the logo on a small, semi transparent strip.

Keep in mind that even when an app's interface switches to dark mode, the inside of your uploaded image stays the same. On social media, then, the real control is yours. If you fix the background inside the image, the app's theme cannot affect your logo. That logic differs from your website, so explain it to your team separately.

Also think about ads and presentations. Sales decks, trade show screens, and partner websites can all use dark backgrounds. So share the negative and all white versions not only with your social media team but with everyone who builds presentations and with your partners. A shared folder with file names that state the background, such as logo-dark-background and logo-light-background, cuts down wrong picks a lot.

Which logo files should you get from your designer?

Much of this problem starts because a business owns just one PNG file. The table below shows a minimum logo set that also covers dark mode. Each row serves a different background and use.

FileBackgroundWhere to use itSuggested format
Main logo (color)White and lightWebsite, decks, invoices, light themeSVG, PNG
Negative logoDarkDark site theme, dark header, footerSVG, PNG
All white logoPhotos and videoStories, ad creatives, videoSVG, transparent PNG
All black logoSingle color print, bright photosStamps, documents, one color printSVG, PDF
Email logo with backgroundUnknownEmail signature, newsletter headerPNG (with its own background)
Symbol or faviconSmall size, any themeBrowser tab, app iconSVG, ICO, PNG
Profile imageFilled squareSocial media profilesPNG, JPG

Also ask for a one page usage note that lists the color codes and the background for each file. And make sure the source files, meaning the editable vector working files, belong to you.

Did you really fix it? Which checklist confirms the result?

After you place the files, go through the checklist below line by line. We recommend testing each row in light and dark mode, on phone and desktop.

CheckHow to testPass condition
Site headerSwitch your phone to dark mode and reload the siteThe negative logo shows
Main logo contrastEnter the color codes in the contrast toolAbove your chosen threshold
Theme toggleClick the theme button on your siteThe logo switches with the theme
Email signatureOpen it in dark view in two different appsThe logo reads clearly, no dirty edge
FaviconSwitch the browser to a dark themeThe icon stands out in the tab
Story templateTry it with a dark and a bright photoThe right version in both cases
Fallback imageOpen the site in a browser without dark mode supportThe main logo loads correctly

If a row fails, then check whether that channel uses the right file. More often than not, the issue is not the file itself but someone uploading the wrong one.

Logo disappears in dark mode: which mistakes make it worse?

When a logo disappears in dark mode, quick fixes often just move the problem somewhere else. These are the mistakes we see most often:

  • Inverting the logo with a CSS filter and accepting colors that no longer match the brand.
  • Adding a heavy white glow that leaves a dirty halo at small sizes.
  • Picking a dark theme logo color by eye without ever measuring contrast.
  • Adding a theme toggle but tying the logo swap only to the system preference.
  • Continuing to use a transparent PNG in email.
  • Producing the versions but never writing down who uses which file where.

In short, all of these mistakes treat the logo as a single file. In reality, a logo is a system, and you should decide in advance which piece takes over when the background changes. For the wider accessibility picture, our guide on web accessibility and WCAG standards explains why contrast matters.

How much can you fix on your own?

To be honest, you can handle a large share of this work yourself. Measuring contrast, taking inventory, preparing an email logo with a background, and adding the picture code to your site take a few hours for a team with some technical skills. If your logo is simple and uses one color, you can also create the white version in a design app.

However, it gets harder when your logo has several colors, fine details, or a symbol. Keeping the brand's character in a negative version, preventing colors from merging on dark backgrounds, and staying legible at small sizes all call for design decisions. Also, those decisions need to carry over into your palette, social templates, and presentations. Otherwise, each channel invents its own version of the truth.

Protecting your brand also belongs in this process. While you define your logo versions, you may also want to think about what to do if someone uses your colors or symbol without permission. Our companion guide on what to do when a competitor copied your logo and brand colors covers that question.

When does professional help make sense?

Sometimes your logo disappears on dark backgrounds and every new version seems to damage its look. Sometimes each channel has started using a different logo file. In both cases, you need a system rather than one more file. That system includes the main logo, negative and single color versions, a light and dark palette, background safe files for email and social media, and a short usage guide that ties it together.

At Talha Aslan and team, we do not start this work by redrawing your logo. First we measure where and why the current logo struggles. Then we look for the smallest change that keeps your brand recognizable. If you want your logo adapted for dark mode, email, and social media at the same time, take a look at the scope of our corporate identity design service. We do not promise identical results on every screen, since apps can change their own behavior. However, we document clearly which file goes on which background, and why.

Core guide: What Is Digital Marketing? Its types, examples and how it is done, on one page with an interactive film that travels through the brain.

Frequently Asked Questions

Why does my logo only disappear in my phone's dark mode?
Your logo is most likely dark with a transparent background. In dark mode, the background turns nearly black, so two dark colors meet and contrast drops. The fix is a separate negative or white version for dark backgrounds. On your website, you can then serve that file automatically based on the visitor's theme preference.
Do logos have to meet WCAG contrast ratios?
No. According to the W3C's WCAG guidance, text that is part of a logo or brand name has no contrast requirement. Still, people need to see your logo to recognize your brand, so these thresholds make sensible targets. We use the 3:1 threshold for non-text graphics as a practical starting line for logo versions.
Is inverting the logo with CSS good enough?
Usually not. Automatic inversion turns colors into completely different shades. Navy can become pale yellow, and red can become cyan. What you get is an unrecognizable copy of your brand. A negative version, where a designer rebuilds the color scheme by hand for dark backgrounds, gives a far safer result.
Which logo file should I use in my email signature?
Instead of a transparent PNG, we recommend a PNG with its own light background. You cannot control which app or theme opens your email. When the logo carries its own background, it stays readable in dark view too. If the image does not appear at all, the cause is probably blocking rather than contrast.
How many files do I need for a dark mode logo?
A minimum set includes the main color logo, a negative logo for dark backgrounds, an all white logo for photos, an all black logo for one color print, an email logo with a background, and a symbol for the favicon. Also ask for a short usage note that names the right background for each file.
Which colors should I enter in a contrast checker?
Enter your logo's main color as the foreground and the dark background color as the background. If your logo uses several colors, measure each one separately, because the weakest color decides legibility. For gradient logos, measure the darkest end, and take the background color from a real screenshot instead of guessing.
  • logo variations
  • dark mode
  • dark theme
  • contrast ratio
  • brand identity
  • negative logo
Share:
Talha Aslan

Google Partner digital marketing expert. Hands-on with SEO, Google Ads, web design and e-commerce projects since 2012; every post here comes from that experience.

Next project

Get a quote for your project.

Your brief goes straight to Talha Aslan and team: strategy led by Talha, delivery by an experienced team. We reply the same day and send the scope, timeline and price as a written quote within 1 business day.