Skip to content
Qriou

Design

QR code colors: how to customize without losing scans

Cameras see contrast, not color. How to pick modules and background, use gradients and transparent backgrounds, and get color right in print.

Qriou Editorial Team 5 min readUpdated

Why color changes scanning

A camera does not see color the way we do. To read a QR code, the app turns the image into grayscale and decides, module by module, what is dark and what is light. All that matters is the difference in lightness between the modules and the background. A red and a green can look very different to our eyes and almost identical in grayscale.

So the right question is not whether the color matches the brand, but whether it is dark enough compared with the background. With that rule in mind, you can use almost any color from your visual identity without losing scans.

Contrast: the number that matters

Contrast between two colors can be measured. Qriou uses the same formula as the web accessibility guidelines (WCAG), which compares the relative luminance of the two colors and gives a result between 1:1 (identical colors) and 21:1 (black on white).

In the Studio, when the contrast between the modules and the background drops below 4.5:1, a scan recommendation appears. It does not mean the code will fail at 4:1, but the safety margin shrinks: in dim light, with glare or a faded print, the remaining difference may not be enough. Above 7:1 you have a comfortable margin for almost any situation.

Real example

The classic code: dark modules on a white background, with contrast close to the maximum. It is the reference to compare any color combination against.

Show what the code contains
https://qriou.com.br
Create this QR Code

Dark modules, light background

The QR code specification was designed for dark modules on a light background. Many modern readers also scan inverted codes (light on dark), but not all of them, and older ones often fail. If the code will be used by a varied audience, keep the original order.

In practice, this means picking the darkest version of the brand color for the modules: navy instead of sky blue, burgundy instead of pink, bottle green instead of lime. The background should be white, cream or a very light color.

  • Good pairs: navy on white, black on light yellow, burgundy on cream, dark green on white.
  • Risky pairs: medium gray on white, orange on yellow, red on green, blue on purple.
  • Avoid a dark background with light modules, unless you test with many devices.

Gradients without losing contrast

The Studio offers solid fill, linear gradient and radial gradient. A gradient changes the color of the modules across the code, and the risk lies at the lightest point: if one of the two colors is too light, the modules in that area blend into the background.

The rule is simple: each of the two gradient colors needs good contrast with the background. A gradient from dark blue to dark purple works very well. A gradient from dark blue to yellow will fail in the yellow area. In a linear gradient, the angle does not change scanning, only the look; pick whatever suits the piece best.

Transparent backgrounds and photos

The Transparent background option exports the code without the background square, so it fits into designs that already have a color. It is useful, but it moves the responsibility for contrast to the piece where the code will be placed.

Never place a transparent QR code over photos, textures or background gradients. The color variation behind the modules confuses the camera. If the design has a photo, keep a solid, light block of color behind the code, including the quiet zone.

Color in print: a screen is not paper

The color you see on a monitor is emitted light; color on paper is reflected. The same color usually prints darker and less saturated, and it changes with the paper, the ink and the printer. Recycled or kraft paper, for example, darkens the background and reduces contrast.

Glossy materials such as vinyl, acrylic and laminated paper create reflections that wash out part of the code under direct light. Prefer a matte finish where the code goes. And always print a proof on the final material before the full run.

Module and eye shapes

Besides colors, the Studio lets you choose the shape of the modules (square, rounded, dots, diamond and bars) and of the eyes (square, rounded, circle and diamond). Fuller shapes, such as square and rounded, leave more dark area and tolerate medium colors better. Dots and diamonds leave more empty space between modules and need higher contrast.

The safety margin is shared among all your choices. If you use dots, a gradient and a logo at the same time, each decision uses up a little of the margin. Being bold in one thing and keeping the others classic is the safest way to customize.

Step by step in Qriou

Colors, gradients and shapes are free in the Studio.

  1. Create the code content in the Studio.
  2. In the Design step, choose the module color using the darkest version of the brand color.
  3. Choose a light background. If the scan recommendation appears, darken the modules or lighten the background.
  4. If you want a gradient, check that the second color is dark too.
  5. Wait for the scan test to confirm the code.
  6. Print a proof on the final material and scan it with two phones.

Color checklist

Before publishing or printing:

  • Dark modules on a light background.
  • Contrast of at least 4.5:1, with no scan recommendation in the Studio.
  • Both gradient colors contrast with the background.
  • No photo or texture behind the code.
  • A printed proof on the final material, scanned in dim light.

Frequently asked questions

Do colored QR codes work?
Yes, as long as the modules are much darker than the background. The camera reads differences in lightness, not color. Contrast above 4.5:1 is the recommended minimum.
Can I make a white QR code on a black background?
Many current phones scan inverted codes, but not all. For a varied audience, keep dark modules on a light background.
Do gradients hurt scanning?
Only when one of the colors is too light. If both gradient colors are dark compared with the background, the code scans normally.
Why does my colored QR code scan on screen but not on paper?
Printed colors come out darker and less vivid, and colored or glossy papers reduce contrast. Always print a proof on the final material.

Next step

Put the guide into practice

Create your QR Code in the Studio, customize it, check the scan test and download it as a PNG for free.

Create this QR Code

Read next