Tailwind-Compatible Color Scale Generator
Generate an 11-step color scale (50 through 950) formatted for Tailwind CSS v3 and v4 theme configurations.
| Step | Swatch | Hex | Lightness (L) | Saturation (S) | Recommended UI Role |
|---|---|---|---|---|---|
| 50 | #EFF3FB | 96% | 60% | Subtle tint, light card backgrounds | |
| 100 | #D5DFF6 | 90% | 65% | Hover states for light backgrounds, badges | |
| 200 | #A8BFF0 | 80% | 71% | Soft borders, dividers, subtle accents | |
| 300 | #799DEC | 70% | 75% | Secondary borders, disabled input frames | |
| 400 | #487BEA | 60% | 79% | Muted decorative icons, placeholder accents | |
| 500 | #2563EB | 53% | 83% | Primary brand anchor, main UI buttons | |
| 600 | #1450D2 | 45% | 83% | Primary button hover, active interactive state | |
| 700 | #1242AB | 37% | 81% | High-contrast headings, accessible text on light | |
| 800 | #103584 | 29% | 78% | Deep card surfaces, dark mode UI elements | |
| 900 | #0D275E | 21% | 76% | Dark mode background containers | |
| 950 | #0A1939 | 13% | 70% | Deepest canvas background, terminal panels |
/* Tailwind CSS v4 @theme */
@theme {
--color-brand-50: #EFF3FB;
--color-brand-100: #D5DFF6;
--color-brand-200: #A8BFF0;
--color-brand-300: #799DEC;
--color-brand-400: #487BEA;
--color-brand-500: #2563EB;
--color-brand-600: #1450D2;
--color-brand-700: #1242AB;
--color-brand-800: #103584;
--color-brand-900: #0D275E;
--color-brand-950: #0A1939;
}// tailwind.config.ts
colors: {
brand: {
50: '#EFF3FB',
100: '#D5DFF6',
200: '#A8BFF0',
300: '#799DEC',
400: '#487BEA',
500: '#2563EB',
600: '#1450D2',
700: '#1242AB',
800: '#103584',
900: '#0D275E',
950: '#0A1939',
},
}Technical Specification & Mathematical Principles
The Tailwind scale anchors the base color at index 500. Lighter variants (50-400) are mapped through a non-linear luminance curve with targeted saturation dampening.
Darker variants (600-950) apply progressive attenuation down to L = 2% for step 950, producing balanced contrast for dark mode UI backgrounds and text hierarchies.
The perceptual stepping table below details the Lightness (L%) and Saturation (S%) coordinates for each shade alongside standard production UI design tokens.
Frequently Asked Questions
How does the scale preserve chromatic saturation across light and dark steps?
How do I add this generated palette to Tailwind CSS v4?
Does the 500 step match my original base color?
Related Design & Color Instruments
Procedural Palette Generator
Generate balanced 5-color palettes based on geometric angles on the HSL color wheel with lockable color slots.
Image Palette Extractor
Extract 6 dominant theme colors from any uploaded image using Web Worker K-Means clustering off the main thread.
CSS Gradient Maker
Design linear and radial CSS gradients with 360-degree angle control, multi-stop adjustments, and instant code export.
Color Shades Step Generator
Generate smooth linear step interpolations from any base color towards pitch black (#000000).