Skip to content
Flutter & Mobile Runs in your browser — nothing uploadedFree · No signup

Flutter MaterialColor & ColorScheme Generator

Pick a brand color and get a full Flutter MaterialColor swatch (shades 50 to 900), a Material 3 ColorScheme.fromSeed snippet and a ThemeData starter — with a live preview of every shade.

Base color

  • 50#E7F6FD
  • 100#CFEDFB
  • 200#9FDBF6
  • 300#6EC9F2
  • 400#3EB7ED
  • 500 · base#0EA5E9
  • 600#0C91CD
  • 700#0B7DB1
  • 800#096A95
  • 900#075679

Dart code

import 'package:flutter/material.dart';

const int _brandPrimary = 0xFF0EA5E9;

const MaterialColor brand = MaterialColor(
  _brandPrimary,
  <int, Color>{
    50: Color(0xFFE7F6FD),
    100: Color(0xFFCFEDFB),
    200: Color(0xFF9FDBF6),
    300: Color(0xFF6EC9F2),
    400: Color(0xFF3EB7ED),
    500: Color(0xFF0EA5E9),
    600: Color(0xFF0C91CD),
    700: Color(0xFF0B7DB1),
    800: Color(0xFF096A95),
    900: Color(0xFF075679),
  },
);

How to use the Flutter Color Palette

  1. Enter a hex color or use the color picker.
  2. Review the generated shades in the preview.
  3. Copy the MaterialColor or ThemeData code into your Flutter theme file.

Features

  • Hex → MaterialColor with 10 shades (50–900)
  • Material 3 ColorScheme.fromSeed and ThemeData snippet
  • Live swatch preview with hex values
  • Color(0xFF…) constant output ready for Dart

Frequently asked questions

Why do I need a MaterialColor instead of a Color?

Older APIs such as ThemeData(primarySwatch:) require a MaterialColor — a Color with 10 named shades. With Material 3 you usually pass a seed color to ColorScheme.fromSeed instead; this tool generates both.

How are the shades calculated?

Lighter shades (50–400) are mixed toward white and darker shades (600–900) toward black, with 500 being your exact color — matching how Material Design swatches are structured.