QR Code Design: How to Create Custom QR Codes That Get Scanned

Design QR codes with your brand colors and logo. Learn what design choices hurt scan rates, the best color combinations, and how to test your custom QR code.

Custom QR codes are a double-edged sword. Done right, a branded QR code — with your colors, logo, and a clean design — scans 20–30% more often than a bare black-and-white code simply because people trust it more and engage with it. Done wrong, a beautifully designed QR code that fails to scan is worse than useless: it erodes trust, wastes print budget, and loses the customer who wanted to engage.

The tension between design and scannability is real, but it's manageable. QR codes have built-in error correction — up to 30% of the pattern can be obscured or altered and the code will still decode correctly. This gives designers significant creative latitude. The rules aren't arbitrary: they're based on how scanner algorithms detect and decode QR patterns. Follow them, and you get beautiful, scannable codes. Ignore them, and you get expensive coasters.

This guide covers every design element you can customize, the color rules that matter, how to safely add a logo, shape style options, the 8 most common design mistakes (and how to fix them), industry-specific design recommendations, and a 3-step verification process before any code goes to print.

Design Your Custom QR Code

Create branded QR codes with your colors, logo, and style. Full customization on Pro — starting at $9/month.

✓ Custom colors & logo ✓ Multiple dot styles ✓ Dynamic & trackable ✓ SVG & PDF export
Design Your Custom QR Code →

QR Code Design Elements You Can Customize

Modern QR generators give you six distinct design levers. Each affects both aesthetics and scan reliability to a different degree:

Element 1

Foreground Color

The color of the QR modules (dots/squares) that form the pattern. This is the most impactful design element. Must be significantly darker than the background for reliable scanning. Your darkest brand color works best — navy, dark green, charcoal, deep purple, or black.

Element 2

Background Color

The color behind the QR modules. White and near-white are the safest options. Light brand tones (cream, light blue, pale gold) work well if the contrast ratio against the foreground exceeds 4.5:1. Avoid dark backgrounds — most scanner algorithms expect dark modules on a light field.

Element 3

Corner Square Style

The three large squares in the corners (called "finder patterns") that help scanners locate the code. These can be styled as sharp squares, rounded squares, or with a rounded outer frame and square inner dot. Avoid exotic styles that remove the contrast distinction between inner dot and outer frame.

Element 4

Dot Style

The shape of the individual data modules throughout the body of the QR code: square (classic), rounded (modern, higher scan rates in tests), dots (circular, minimal feel), or classy (diamond-shaped). Rounded and dot styles scan just as reliably as square when properly sized and high-contrast.

Element 5

Logo / Icon in Center

An embedded logo or icon in the center of the QR code increases recognition and brand trust. Requires error correction level H (30%) to remain scannable. Logo should not exceed 30% of the total code area. Use PNG or SVG with transparent background for clean placement.

Element 6

Quiet Zone (Margin)

The clear white space surrounding the entire QR code. QR standard requires a minimum 4-module-width margin on all sides. Cropping this margin — or placing the code against a busy background with no breathing room — is one of the most common reasons field-deployed QR codes fail to scan.

QR Code Color Rules

Color is where most custom QR codes go wrong. The rules aren't about aesthetics — they're about how scanner algorithms detect contrast. Here are the four critical color principles:

Rule 1: Contrast Ratio Must Be Minimum 4.5:1

The Web Content Accessibility Guidelines (WCAG) AA standard requires 4.5:1 contrast ratio for text, and QR scanners apply a similar threshold. To calculate contrast: use a tool like contrast-ratio.com with your foreground and background hex colors. A ratio below 3:1 will fail on lower-quality cameras and in poor lighting.

Rule 2: Dark Foreground on Light Background (Not Reversed)

Standard QR scanner algorithms are optimized to find dark modules on a light background. While modern scanners can handle some degree of inversion, white-on-dark or light-on-dark patterns have a statistically higher failure rate — particularly with older phone cameras and third-party scanner apps. Never use a dark background with a light-colored QR pattern for any high-stakes deployment.

Rule 3: Avoid Red or Orange Foreground

Red and orange have low luminance contrast against white backgrounds in the near-infrared spectrum that some scanner cameras use. Red foreground QR codes may scan fine on premium smartphones but fail on entry-level Android devices with basic camera sensors. Dark red (maroon, burgundy) is safer — it has higher luminance contrast.

Rule 4: Brand-Friendly Color Palettes That Maintain Contrast

Palette Name Foreground Background Contrast Reliability
Classic Black #000000 #ffffff 21:1 ★★★★★
Navy Brand #1e3a5f #ffffff 12.3:1 ★★★★★
Forest Green #1a4731 #f0faf4 10.8:1 ★★★★★
Deep Purple #3b0764 #faf5ff 14.2:1 ★★★★★
Charcoal Warm #2d2d2d #fafaf9 17.1:1 ★★★★★
Teal Corporate #0f4c5c #f0f9ff 9.7:1 ★★★★★
Amber on Dark #92400e #fffbeb 7.3:1 ★★★★☆
Slate Blue #1e3a8a #eff6ff 11.2:1 ★★★★★
Rose Gold #9f1239 #fff1f2 8.1:1 ★★★★☆
Olive Earth #3f4c1f #f7f9f0 12.6:1 ★★★★★

Avoid these color mistakes: Bright red foreground (#ef4444) on white, any light color on white (yellow, lime, pale blue), dark color on dark background, and gradients or patterns in the QR module area. Gradients in the background (away from the modules) are fine; gradients applied to the QR modules themselves destroy contrast uniformity and cause scan failures.

Embedding a logo in your QR code is the single design choice that most improves brand recognition and scan rate. Here's how to do it correctly:

1

Set Error Correction to Level H Before Generating

QR codes have four error correction levels: L (7%), M (15%), Q (25%), H (30%). Level H means the code can be decoded even if 30% of its pattern is obscured or damaged. When you place a logo over the center, you're effectively obscuring that area — so you need H to compensate. Set this before you generate the QR code, not after. In ScansTrack, error correction is automatically set to H when you enable logo upload.

💡 Level H creates a slightly denser QR pattern (more modules) than Level L. This is normal and has no impact on real-world scan speed.
2

Prepare Your Logo File

Use a PNG with transparent background for best results — transparency allows the QR generator to properly composite the logo over the code without adding a white box that obscures extra modules. SVG is even better for logos with clean vector artwork. Avoid JPG (no transparency support) and logos with complex gradients or thin strokes that become invisible at small sizes.

💡 Crop your logo tightly before uploading — extra transparent space around the edges increases the effective area it occupies on the QR code.
3

Keep the Logo Under 30% of Total QR Code Area

The error correction level H allows up to 30% damage. Your logo should occupy no more than 30% of the total QR code area — and ideally less (20–25% is safer). Most QR generators auto-size the logo, but verify in the preview that the logo isn't encroaching into the finder pattern squares in the corners. Those corner patterns are non-negotiable — any obstruction of them causes immediate scan failure.

💡 Square or near-square logos work better than wide horizontal logos at the same percentage of QR code area.
4

Add a White or Contrasting Background Behind the Logo

Even with a transparent PNG, add a small white padding or circular background behind your logo in the QR code center. This creates visual separation between the logo and the surrounding modules, improving logo legibility and preventing the logo's edge pixels from blending into adjacent dark modules in a way that confuses some scanners.

💡 ScansTrack automatically adds a white buffer zone behind uploaded logos. If using another tool, add this manually in your logo file.
5

Test-Scan on at Least 3 Devices Before Finalizing

Test with: (1) native iPhone Camera app, (2) a mid-range Android device using Google Lens, (3) a third-party scanner app like QR & Barcode Scanner. If any one fails, reduce logo size by 10% and test again. Also test at the minimum print size you'll use — a logo that scans at 10cm might fail at 2.5cm. See full testing guide below →

💡 Also test in dim lighting — a logo-embedded QR code that scans fine in bright light may fail under restaurant or event venue lighting.

QR Code Shape Styles

The "dot style" — the shape of individual data modules — is a design choice that affects both aesthetics and scan reliability:

Square (Classic)

Traditional pixel-grid pattern. Maximum scan reliability on all devices including older phones. Zero visual ambiguity for scanner algorithms.

Best reliability
🔲

Rounded

Modules with rounded corners. Modern, friendly aesthetic. Scan reliability essentially identical to square in tests. Most popular choice for branded codes.

Recommended

Dots (Circular)

Full circular modules. Minimal, elegant look. Requires high contrast and clean rendering. Slightly higher scan failure rate on very small prints (under 1.5cm). Test before printing.

Test first
🔷

Hexagonal

Geometric hex-shaped modules. Distinctive appearance. Same scan reliability caveats as dots — works well at normal sizes, test at small scale. Great for technical or design-forward brands.

Test at small sizes

Corner square styles matter too: The three finder patterns in the corners are what QR scanners look for first. Use styles that maintain a clear visual distinction between the outer frame (dark border) and inner dot (dark center) separated by the white space. Exotic corner styles that blur these three regions together — or make them the same color — prevent scanner detection.

QR Code Design Mistakes

These are the eight most common QR code design mistakes — and exactly how to fix each one:

  • Mistake 1: Inverted colors (light on dark) Using a white or light pattern on a dark or black background. Scanner algorithms are tuned for dark-on-light and frequently fail with inverted QR codes, especially on older Android devices.
    ✓ Fix: Always use a dark foreground on a light/white background. If your design requires a dark background, add a white frame around the QR code so the background provides contrast.
  • Mistake 2: Cropped quiet zone Placing the QR code with its edges touching surrounding design elements, or trimming the white border during print production. The quiet zone is part of the QR spec — it tells the scanner where the code begins and ends.
    ✓ Fix: Maintain at least 4 QR module widths (typically 4–8mm) of clear white space on all four sides. Set this as a bleed-safe zone in your print template.
  • Mistake 3: Logo too large Embedding a logo that covers more than 30% of the QR pattern area. Even with level H error correction (30% damage tolerance), larger logos push beyond the recoverable threshold.
    ✓ Fix: Keep logos at 20–25% of the total QR code area. If your logo is wide, consider using a compact icon/logomark variant instead of the full logo with wordmark.
  • Mistake 4: Insufficient contrast Using brand colors that look great together but have low luminance contrast — like medium blue on navy, or yellow on white. The code looks branded but scans unreliably.
    ✓ Fix: Check every color combination with a contrast ratio tool before generating. Minimum 4.5:1; aim for 7:1+ for maximum reliability across all scanner types and lighting conditions.
  • Mistake 5: Printing at too small a size Printing the QR code smaller than 2cm × 2cm, especially for codes that need to be scanned from more than 15cm away. The scanner can't resolve individual modules below a certain size threshold.
    ✓ Fix: For standard use (15–30cm scanning distance), use minimum 2.5cm × 2.5cm. For signage viewed from 1–2m, scale up to at least 8–10cm. Scale the quiet zone proportionally.
  • Mistake 6: Using a static code for changeable content Printing a static QR code that links to a URL that later changes — a menu that gets updated, a campaign page that expires, or a product page that moves. The printed code now leads to a 404.
    ✓ Fix: Use dynamic QR codes for any content that could change. See dynamic vs static QR code guide →
  • Mistake 7: No call-to-action Placing a QR code with no context — no text, no icon, no explanation of what it does. Most people now know what QR codes are, but they need to know why they should scan it.
    ✓ Fix: Always add a 1-line CTA: "Scan for menu," "Scan to connect," "Scan for 20% off." Place it directly below or above the QR code in a font size slightly larger than body text.
  • Mistake 8: Downloading PNG for print Using a raster PNG image for business cards, signage, or large-format printing. PNG is a fixed-resolution file — at print resolution (300dpi) it will be too small, and upsizing causes pixelation.
    ✓ Fix: Always download SVG format for print. SVG is vector-based, scales to any size at perfect quality, and prints crisply at any dimension from 1cm to 10 meters.

Custom QR Code Examples by Industry

Design requirements vary significantly by industry and context. Here are six industry-specific recommendations:

🍽️

Restaurant

Restaurant QR codes appear on tables, tent cards, and window decals — viewed in varied lighting from natural daylight to dim evening ambiance. Reliability over style is paramount.

Design Recommendation Dark brand color (e.g., deep burgundy or navy) on white or cream background. Minimal dot style. Restaurant logo in center if error correction H is used. CTA: "Scan for full menu." Use dynamic QR for easy menu updates. See restaurant QR guide →
🛍️

Retail

Product packaging QR codes face challenging conditions: curved surfaces, variable print quality, and competitive shelf environments where the code competes visually with other elements.

Design Recommendation High-contrast black on white, or brand color with white background patch if packaging is dark. Square dot style for maximum reliability. Keep to 2.5–3cm min on packaging. Seasonal variant codes for limited campaigns. Consider color that complements packaging without reducing contrast.
🎟️

Events

Event QR codes appear on signage, print-at-home tickets, and screen displays. They need to work under stage lighting, projectors, and outdoor conditions.

Design Recommendation Vibrant, high-contrast palette: event brand colors with contrasting background. Large size (8cm+) for lobby signage. Standard black on white for ticket QR codes (maximum compatibility with scanner guns). Dynamic QR for check-in with location and time tracking.
🏠

Real Estate

Real estate QR codes are printed on yard signs, window displays, and print brochures — often in outdoor conditions with glare, rain, and bright sunlight.

Design Recommendation Professional and trustworthy: dark navy or charcoal on white. Agency logo in center at error correction H. Large format (5cm+) on yard signs. Always use dynamic QR — listings change frequently and you cannot reprint every yard sign when a property sells.
🏥

Healthcare

Healthcare QR codes must convey trust and be accessible to users of all ages and technical backgrounds, including older patients who may use older phones.

Design Recommendation Clean, clinical: black or dark navy on white only. Square dot style for maximum compatibility with older phone cameras. No logo overlay (prioritize reliability). Large clear CTA: "Scan to view patient information." Minimum 3cm size for form-based deployments.
📣

Marketing

Marketing QR codes in campaigns need to stand out and drive action. They appear on print ads, direct mail, billboards, and product inserts — often as the sole conversion mechanism.

Design Recommendation Bold, campaign-branded: use the campaign's primary color as foreground against white. Rounded dot style for modern appeal. Brand logo in center. Strong CTA with benefit: "Scan for your 30% discount." Always dynamic with UTM tracking. See: QR code analytics guide →

How to Test Your Custom QR Code

Never send a custom QR code to print without completing this 3-step verification. A 5-minute test prevents expensive reprints and lost customers:

1

Test on 5+ Devices

Scan with: iPhone Camera (iOS), Google Lens (Android), Samsung Bixby Vision, a third-party scanner app, and a tablet. If any device fails, redesign before printing. Different scanner implementations have different tolerance for design variations.

2

Check at Minimum Print Size

Print the code at the exact size it will be deployed (not larger). Test-scan from the intended distance — 20cm for table cards, 50cm for countertop signage, 2m+ for wall signs. If it fails at minimum size, increase the code dimensions before final print.

3

Test in Different Lighting

Test in: bright daylight (window), indoor fluorescent, dim ambient (restaurant mood), and under phone flashlight. If the code fails in any expected deployment environment, increase contrast or remove the logo and retest.

After testing: If you're using dynamic QR codes, also verify the destination: scan and confirm the landing page loads correctly on mobile, loads fast (under 3 seconds), and doesn't redirect to a dead page. A working QR code that leads to a broken page is just as bad as a broken QR code. Learn about dynamic QR codes →

Frequently Asked Questions

Can a colored QR code still be scanned?
Yes — colored QR codes scan reliably when designed correctly. The key requirement is sufficient contrast between foreground and background — a minimum ratio of 4.5:1 (ideally 7:1+). Keep your foreground color darker than your background, use your brand's darkest shade as the module color, and avoid red or orange foreground on white (low luminance contrast). With proper contrast, colored QR codes scan just as reliably as standard black-and-white codes on all modern devices.
How do I add a logo to a QR code?
To add a logo safely: (1) Set error correction to Level H before generating — this gives you 30% damage tolerance for the logo overlay. (2) Prepare a PNG with transparent background. (3) Upload the logo using a QR generator that supports it, like ScansTrack Pro. (4) Keep the logo under 30% of the total code area. (5) Test on 3+ devices before printing. Never add a logo to a code generated at error correction L or M — it will fail to scan.
What is the best QR code design?
The best QR code design is the one that gets scanned the most. In practice, this means: your brand's darkest color as foreground, white or very light background, rounded dot style (modern look, full reliability), logo at error correction H if your brand requires it, clear quiet zone margin, and a one-line call-to-action below the code. Designs that dramatically depart from these rules in favor of aesthetics — gradient modules, dark backgrounds, complex art — consistently underperform in real-world scan rate data. See the business card QR guide for a practical design example.
Can I change my QR code design after printing?
The visual design of a printed QR code is permanent — you cannot alter the physical print. However, with a dynamic QR code, you can change the destination the code points to at any time from your ScansTrack dashboard — without touching the printed code. This means your business card, menu, or product packaging can always lead to the correct, up-to-date destination. Only the destination changes, not the printed pattern. This is why dynamic codes are the professional standard for any print use. Dynamic vs static QR codes explained →

Design Your Custom QR Code Free

Create branded QR codes with custom colors and logo. Full analytics on Pro. No watermark, no code limit on static codes.

Related articles: color selection · with logos · flyer design

Design Your Custom QR Code →

Free static codes · Custom design + dynamic codes from $9/mo · SVG + PDF export