Skip to content
StylQR home
QR Code Design

How to Change the Color of a QR Code and Keep It Scannable

Change a QR code's color without breaking it: safe color pairs, gradients, eye colors, backgrounds, recoloring an old code and how colors shift in print.

By StylQR Editorial TeamPublished Updated 6 min read

StylQR blog cover: How to Change the Color of a QR Code and Keep It Scannable, illustrated with a paint palette with color swatches, a brush and a QR code on a forest green background
Table of contents

Yes, you can change a QR code to almost any color, as long as the modules stay clearly darker than the background. Navy, deep green, burgundy or charcoal on white or cream scans as well as black. Pale colors, bright red on white and light-on-dark designs are where codes start to fail.

Changing the color never changes what the code opens. This guide covers how scanners see color, which pairs work, how to use brand colors, gradients and backgrounds safely, how to recolor a code you already have, and what happens to color in print.

Why color never changes the content

A QR code stores its data in the arrangement of dark and light squares (modules). The scanner works out which modules are dark and which are light, then decodes that pattern. It doesn't care whether "dark" is black, navy or forest green.

So a code that opens https://example.com/menu still opens https://example.com/menu after you recolor it. Color also has no effect on capacity, which depends only on the content and the error-correction level. Changing where a static code goes is a separate question that needs a new code; static vs dynamic QR codes explains why.

How a scanner sees your colors

A phone doesn't read your code in color. It converts the image to light and dark and decides, module by module, which side of the threshold each square falls on. What matters is the brightness difference between modules and background, not the hue.

That's why two colors that look very different can fail together. Bright red and white feel high-contrast to the eye, but under red light they look almost the same. Denso Wave's QR code FAQ says a red code on a white background can't be read by scanners that use red light, and that the depth of the color affects readability. Its default advice is black on white.

The quickest check is the grayscale test: convert your design to grayscale in any image editor. If it's still a crisp dark pattern on a light square, it will scan. If it turns into mid-gray on light gray, it won't.

Color pairs that work and pairs that fail

ModulesBackgroundResult
Black, charcoalWhite, creamMost reliable
Navy, dark blueWhite, pale blueReliable
Deep green, forestWhite, mintReliable
Burgundy, dark purpleWhite, pale pinkReliable
Dark brownBeige, kraft paperUsually fine; test on the real paper
Mid grayWhiteRisky, often too little contrast
Bright red, orangeWhiteOften fails
Yellow, light pink, pastelWhiteFails
Dark blueDark purpleFails: similar brightness
WhiteBlack or a dark colorInverted: many scanners fail

Keep the background lighter than the modules every time. A light-on-dark code is called inverted. Many current phone cameras read it, but plenty of scanner apps and older phones don't, so it's a gamble on printed material. Similar shades are the other trap: dark blue on dark purple, or beige on cream, look distinct but have almost the same brightness.

Using brand colors without losing contrast

Most brand palettes have one dark color and one or two bright accents. Use the dark color for the modules and put the bright accent on parts that don't carry data:

  • The eyes. StylQR lets you give the three corner squares their own color. A brand-colored eye stands out without changing how the data modules read, as long as it's still dark against the background.
  • The frame. A colored frame with call-to-action text carries the brand while the code stays dark-on-light. How to make a QR code with a custom frame covers frame styles.
  • The logo. Let your logo supply the bright color in the center. See how to create a QR code with your company logo for size limits.

If your main brand color is light, such as yellow or sky blue, don't use it for the modules. Use it for the frame or the area around the frame, and keep a white square directly behind the code.

Gradients that still scan

StylQR supports linear and radial gradients on the modules. They scan well when both ends of the gradient are dark.

  • Good: navy to purple, dark green to teal, black to dark blue.
  • Risky: dark blue to light blue. The light end may drop below the contrast a scanner needs, so the code reads on one side and fails on the other.

Check the lightest point of the gradient against the background, not the average. That's the part that fails first.

Backgrounds: solid, transparent or image

  • Solid white or a pale tint is the safe default.
  • Transparent is useful when the code sits on a light, plain area of a design. Never place a transparent code on a dark or busy surface, because the scanner needs light behind the modules.
  • A background image is the riskiest choice. Photos have light and dark areas that compete with the modules. If you use one, pick a pale, low-detail image and watch the scan score closely.

How to change QR code colors in StylQR

  1. Open the URL QR code generator, or pick another type from all QR code types, and enter your content.
  2. Start from one of the 98 templates if you want a color scheme that already works, or set colors yourself.
  3. Choose a solid module color or a linear or radial gradient.
  4. Give the eyes a separate color if you want an accent.
  5. Set the background: solid, transparent or image.
  6. Watch the live scan score (0–100). Fix any warning about low contrast or light-on-dark colors.
  7. Run the in-browser Test scan, then download and scan the file with two phones.

Recoloring a QR code you already have

There are two ways to put an existing code in a new color.

Regenerate it. Enter exactly the same content and pick new colors. A static code is generated from its content, so the same link produces a code that opens the same place. Scan the old code with a QR code scanner first so you know exactly what it holds, and copy it precisely, including https://.

Edit the file. With an SVG, change the module fill color in a vector editor such as Illustrator, Inkscape or Figma. A PNG can be recolored in an image editor, but edges often keep a halo of the old color. Regenerating is usually cleaner.

Either way, copies you've already printed stay the color they are. Only new prints change.

Screen colors vs print colors

Screens show RGB; most printing is CMYK. When a file is converted, saturated screen colors such as bright blue or green often print duller, while some dark colors print lighter than expected. A navy that looks deep on your monitor can come out medium blue on uncoated paper.

For anything printed in volume, print a proof and scan it. With a print shop, ask for the modules in a single dark ink where possible: fine modules built from four overlapping inks can show color fringes if the plates are slightly out of register. How to print high-resolution QR codes covers files, paper and proofing.

Tip: If you're unsure about a color, make the modules darker than you think you need. A code a shade too dark still scans; a shade too light doesn't.

What to do next

Pick one dark brand color for the modules, keep the background light, put accents on the eyes or frame, and check the scan score before downloading. For the full set of design rules, read QR code design best practices. If a recolored code won't scan, work through why a QR code is not scanning.

Frequently asked questions

What is the safest color for a QR code?

Black or a very dark color on white. Denso Wave, the inventor of the QR code, recommends black on white as the default.

Can I change the color of a QR code that's already printed?

Not the printed copies. Recolor the file or regenerate the code and print again. The new copies scan to the same content as the old ones.

Does color affect how much data a QR code can hold?

No. Capacity depends on the content length and the error-correction level, not on color.

Do colored QR codes work on all phones?

Well-contrasted colored codes work on current iPhone and Android cameras. Low-contrast or light-on-dark codes fail more often, especially on older phones and third-party scanner apps, so test on several devices.

Share this guide

StylQR blog cover: How to Create a QR Code with Your Company Logo, illustrated with a brand diamond with a QR code, an image and a brush on a slate blue background

QR Code Design

How to Create a QR Code with Your Company Logo

Add your company logo to a QR code without breaking it. Logo size limits, error correction H, file formats, contrast and how to test before printing.

· 5 min read

StylQR blog cover: How to Make a QR Code with a Custom Frame, illustrated with a frame around a QR code with a clicking hand and sparkles on a amber background

QR Code Design

How to Make a QR Code with a Custom Frame

Add a frame and call-to-action text like "Scan for the menu" to your QR code. Frame styles, wording that gets scans, fonts, colors and printing tips.

· 4 min read