Skip to content
Email Development

Gmail Dark Mode Email Logo Disappears: How to Fix It

Gmail dark mode email logo disappears? Learn why dark logos vanish on dark backgrounds and the simple, tested fixes: background blocks, outlines and PNGs.

Keshur Gojiya

5 min read

Gmail Dark Mode Email Logo Disappears: How to Fix It

If your Gmail dark mode email logo disappears, the cause is almost always a dark or black logo on a transparent PNG. Gmail's dark mode darkens the email background, and the logo then sits dark-on-dark. The most reliable fix is to stop depending on the background: put the logo on a solid-colour block, or give the logo a light outline so it reads on both light and dark.

Why does my logo disappear in Gmail dark mode?

Dark mode in email apps changes colours on your behalf, and you cannot switch it off from your HTML. A transparent PNG with dark text has no background of its own, so it shows whatever the app puts behind it.

In practice the pattern looks like this:

  • Your email has a white background and a black or navy transparent logo.
  • The email app turns the white background into dark grey or near-black.
  • The logo does not change, so it becomes very hard to see.

The opposite problem also happens: a white logo placed on a coloured header can look fine in light mode but wrong if the app changes that header colour.

How do different email clients handle dark mode?

Behaviour varies by client, app and even app version, so test rather than assume. As a general picture from my own testing experience:

  • Apple Mail respects your own dark mode CSS, including the prefers-color-scheme media query.
  • Gmail apps may adjust colours automatically, and Gmail does not follow your prefers-color-scheme rules, so you cannot restyle the email there with a media query.
  • Outlook (desktop, web and mobile) uses its own colour rules, and they differ between versions.

Because you cannot control every client, the goal is a design that survives any colour change, not one that reacts to it.

How to fix a logo that disappears in dark mode

Option 1: Put the logo on a solid background block

This is the approach I use most. Place the logo inside a table cell with its own background colour and a normal (non-transparent) image behind it. The logo always sits on the colour you chose.

<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td align="center" bgcolor="#ffffff" style="background-color:#ffffff; padding:20px;">
      <img src="https://example.com/logo.png" width="180" height="auto"
           alt="Company name" style="display:block; border:0;">
    </td>
  </tr>
</table>

Use both the bgcolor attribute and the inline background-color for wider support. Some clients may still alter the colour, but a deliberate light block around a dark logo gives you the best odds.

Edit the logo in your design tool and add a 1-2 px white (or light) stroke around the dark shapes, then export a transparent PNG. On a light background the outline is almost invisible; on a dark background it keeps the shape readable.

The trade-off: a heavy outline can look rough on a light background, so keep it subtle and check both modes.

If your brand allows, a logo colour with enough contrast against both white and near-black, such as a medium blue or orange, works in either mode. Pure black and pure white are the risky choices. This is a brand decision, so it is not always possible.

Option 4: Swap the logo using dark mode CSS (Apple Mail and similar)

Where prefers-color-scheme is supported, you can show a light logo in dark mode and hide the dark one:

<style>
  .logo-dark { display: none; }
  @media (prefers-color-scheme: dark) {
    .logo-light { display: none !important; }
    .logo-dark { display: block !important; max-height: none !important; }
  }
</style>

<img class="logo-light" src="https://example.com/logo-dark-text.png" width="180" alt="Company name" style="display:block;">
<img class="logo-dark" src="https://example.com/logo-light-text.png" width="180" alt="Company name" style="display:none;">

This helps in clients that honour the media query, but it does nothing in Gmail, and some clients show both images. Treat it as an extra layer on top of Option 1 or 2, never your only fix. You can also add <meta name="color-scheme" content="light dark"> in the head to signal that your email supports both modes, though client behaviour varies.

What file format should the logo be?

Use PNG for logos with transparency, exported at 2x the display size so it stays sharp on high-density screens. Set an explicit width attribute and meaningful alt text. Avoid SVG in email, because several major clients do not render it reliably. A professionally built HTML email template normally bakes these decisions in from the start, including a tested logo treatment.

How do I test dark mode before sending?

  1. Send a test to real Gmail, Outlook and Apple Mail accounts.
  2. Open each on desktop and on a phone, with dark mode switched on in the device or app settings.
  3. Check the logo, buttons, borders and any text placed over images.
  4. Compare with light mode to be sure the fix did not hurt it.

Preview tools are useful for quick checks, but a real device is the final word. You can also draft and preview your markup in the free email editor.

FAQ

Can I turn off dark mode for my email?

No. Email clients decide whether and how to apply dark mode, and your HTML cannot force it off. What you can do is design so the email stays readable however the colours are changed.

Why does my logo look fine in Apple Mail but not in Gmail?

Apple Mail tends to leave your colours alone or follow your dark mode CSS, while Gmail may adjust colours on its own. A logo that depends on a white background looks fine in one and fails in the other.

Should I use a white logo for dark mode?

Only as an addition. A white logo on a dark background works where the media query is supported, but it fails in clients that ignore it. A logo on its own solid background block is safer.

Does a transparent PNG cause the problem?

It is the usual cause, because transparency lets the client's dark background show through. A transparent PNG is not wrong, but it needs enough contrast against both light and dark backgrounds.

Key takeaways

  • A dark transparent logo vanishes because dark mode darkens the background behind it.
  • The safest fix is a solid background block or a subtle light outline on the logo.
  • prefers-color-scheme logo swaps help in Apple Mail but not in Gmail, so use them only as a bonus.
  • Always test on real devices in both light and dark mode before sending.

Tags

  • Dark Mode
  • HTML Email
  • Email Development

About Keshur Gojiya

Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.

Get to know me
Keep Reading
View All Articles
  • Email Development

    7 min read

    Images and Fonts in HTML Email: Best Practices

    Best practices for images and fonts in HTML email: safe formats, retina sizing, alt text, which clients load web fonts, and the Outlook Times New Roman fix.

    • HTML Email
    • Email Development
    Keshur Gojiya
  • Email Development

    7 min read

    Dark Mode HTML Email: How to Code, Design and Test

    A dark mode HTML email guide: how Apple Mail, Gmail and Outlook recolour emails, the meta tags and CSS that work, and how to design and test for both modes.

    • HTML Email
    • Dark Mode
    Keshur Gojiya
  • Email Development

    6 min read

    CSS Support in Email Clients: What Works Where

    CSS support in email clients explained: what Gmail, Outlook and Apple Mail keep, why Gmail drops your CSS, and the fallbacks that keep layouts intact.

    • HTML Email
    • CSS
    Keshur Gojiya

Need help with an email or website?

If an email is breaking in Outlook or dark mode, or you have a design that needs building, tell me about it and I’ll reply with next steps.

Email me