Skip to content
Hex Calculator

Material Design to Hex

Look up the official hex code for any Google Material Design 500-tier color name, like Blue 500, Red 500, Amber 500, or Deep Purple 500.

Hex result
#2196F3
Swapnil Sanghvi

Built by

Swapnil Sanghvi

Full-Stack Web Developer & WordPress Developer

Swapnil Sanghvi is a full-stack web and WordPress developer, UI designer, and full-time freelancer who builds and maintains Hex Calculator.

Material Design to Hex tool preview card from Hex Calculator
Share preview: this is the card that appears when you share the Material Design to Hex page on social media.

Further reading: CSS Colors — W3Schools

How Material Design to Hex Conversion Works

Google's Material Design system defines 19 base hues, each with an official 500-tier hex value from m2.material.io. This tool looks up your input name (case-insensitive, e.g. "Blue 500") against that fixed set and returns the matching hex code.

Material Design to Hex Example, Step by Step

Blue 500 = #2196F3

Blue 500 = #2196F3

Input: "Blue 500"

Lowercase and compare against 19 known hue names
Match found: Blue 500

Result: #2196F3
StepDescriptionResult
Take the input name"Blue 500"input string
Normalize casinglowercase for comparison"blue 500"
Match against the 19 hue namesexact string matchfound: Blue 500
Return the hex valueBlue 500's official hex#2196F3

The lookup requires an exact name match including the '500' suffix — entering just 'Blue' or a different tier like 'Blue 700' won't resolve, since only the 500-tier values are stored.

Where Material Design to Hex Actually Comes Up

Defining an Android App's Color Resources

Implementing a Material Design color scheme in colors.xml or a Compose theme needs the exact hex values for each named hue — this looks them up directly.

Blue 500 -> #2196F3 for colors.xml

Matching a Design Spec's Material Color Names

When a handoff document references "Amber 500" or "Deep Purple 500" by name, this gives you the exact hex to implement without cross-referencing the Material spec site.

spec name -> exact hex value

Building a Design System on Material Foundations

Teams building a custom design system that extends Material Design's base palette need the official hex values as a starting reference point.

Material hue -> design token base

Common Mistakes With Material Design to Hex

  • Leaving off the "500" suffix, since the lookup matches the full name including the tier number.
  • Entering a different tonal shade (like 300 or 700) that isn't part of this base 500-tier set.
  • Mixing up similarly-named hues, like Purple 500 vs. Deep Purple 500, which have different hex values.

Why Use This Calculator Instead of Checking the Spec Site

  • Covers all 19 official Material Design 500-tier hues in one lookup
  • Runs entirely in your browser — nothing you type gets sent anywhere
  • Matches case-insensitively, so any casing works
  • Faster than searching the Material Design spec site by hand

Limitations

  • Finds the closest match in a fixed swatch list using weighted color distance — this is an approximation, not an official conversion, since the underlying brand doesn't publish a public hex specification.

Frequently Asked Questions

Which Material Design colors does this tool support?

All 19 official 500-tier hues from m2.material.io: Red, Pink, Purple, Deep Purple, Indigo, Blue, Light Blue, Cyan, Teal, Green, Light Green, Lime, Yellow, Amber, Orange, Deep Orange, Brown, Grey, and Blue Grey.

How do I format the color name?

Use the hue name plus "500", like "Blue 500" or "Deep Purple 500". The lookup is case-insensitive, so "blue 500" also works.

What's the hex value of Material Blue 500?

#2196F3 — the official Material Design Blue 500 value.

What happens if I enter a shade other than 500, like Blue 300?

It won't match — this tool only covers the base 500-tier value for each of the 19 hues, not the full 50-900 tonal range.

What happens if I misspell a color name?

The tool returns an error asking you to check the spelling, since it requires an exact match against the 19 known hue names.

How do I implement a Material Design color in an Android app?

Look up the hue's hex value here, then define it in your colors.xml or Compose theme file — this gives you the exact official value without hunting through the Material Design spec site.

Are Material Design 500 colors the same across Material 2 and Material 3?

Not necessarily — this tool covers the classic Material 2 (m2.material.io) fixed palette. Material 3's dynamic color system generates palettes per device wallpaper, so it doesn't use these same fixed hex values.