ProfileCrest Developer Blog โ€” Shields.io & Badge Cheatsheets
BADGE CHEATSHEET May 15, 2026 9 min read CodeCrest Engineering Team

Shields.io Badge Custom Colors & Hex Codes: The Ultimate Developer Cheatsheet

Master the complete URL schema for Shields.io badges. Learn exact hex color codes for 40+ top programming languages, frameworks, databases, and cloud platforms, along with escape rules and brand icon slugs.

1. The Anatomy of a Shields.io Static Badge

The standard URL format for a static badge is:

https://img.shields.io/badge/<LABEL>-<MESSAGE>-<COLOR>

For tech stack badges where you only want the technology name, you omit the label and provide just message and color:

https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=white

2. Critical URL Encoding & Hex Rules

The Hash Symbol Trap:

Never include the # character in hex codes in the URL path (e.g. #3178C6). In HTTP URLs, # denotes an anchor fragment; the web browser strips everything after it, causing Shields.io to return an error. Always omit the hash (3178C6).

Character Escaping Rules:

  • Space: Use an underscore _ (e.g. Next.js_15) or %20.
  • Dash (Hyphen): Use a double dash -- (e.g. C--Sharp renders as C-Sharp).
  • Underscore: Use a double underscore __.

3. Official Brand Hex Codes & Simple Icons Slugs

Here is a verified reference list of official brand colors, hex codes, and corresponding Simple Icons slugs for clean badge generation:

TechnologyBrand HexLogo SlugRecommended logoColor
TypeScript3178C6typescriptwhite
Python3776ABpythonwhite
Rust000000rustwhite
Go (Golang)00ADD8gowhite
React20232Areact61DAFB
Next.js000000next.jswhite
Tailwind CSS38B2ACtailwind-csswhite
PostgreSQL4169E1postgresqlwhite
RedisDC382Drediswhite
Docker2496EDdockerwhite
Kubernetes326CE5kuberneteswhite

4. Customizing Style & Label Colors

Shields.io supports five visual styles via the style parameter:

  • style=for-the-badge: Prominent uppercase block badges. Highly popular for developer skill overviews.
  • style=flat-square: Modern flat rectangular badges without rounded pill corners.
  • style=flat: Default pill-style rounded badges.
  • style=plastic: Retro glossy gradient badges.

To color the left label independently from the right value, use labelColor:

https://img.shields.io/badge/Status-Active-success?labelColor=1e293b&style=flat-square

Generate Badges Instantly with ProfileCrest

Skip manual hex typing. ProfileCrest includes hundreds of curated badges with official brand colors and instant markdown copy.

๐Ÿš€ Launch ProfileCrest Generator
Previous: Dark Mode Badge CompatibilityNext: Top Profile Templates 2026