Midnight Tailwind CSS palette

Create a midnight tailwind css palette. This page gives you a ready-to-use color system, export code, and a live gradient preview — no design tools required.

midnight tailwind css palette UI preview
midnight tailwind css palette UI preview

Color palette

#dff0ea
Background 1
background
#f1f8f6
Surface 1
surface
#111827
Text Primary 1
text-primary
#6e797f
Text Secondary 1
text-secondary
#279e73
Primary 1
primary
#2c62b9
Secondary 1
secondary
#2c62b9
Accent 1
accent

Midnight Tailwind CSS palette explained

The midnight tailwind css palette pairs #279e73 as its primary hue with #2c62b9 as the accent. The palette is balanced for midnight aesthetics while keeping text readable against the surface color.

Every swatch is derived from the same two anchor colors, so the tailwind css palette stays harmonious across backgrounds, borders, buttons, and hover states. Copy the CSS below or open it in your favorite tool and apply it immediately.

Use the preview image as a starting point for your own mockups. It shows the exact #279e73 → #2c62b9 gradient applied to a phone screen, a primary button, and a wave pattern so you can see how the midnight look plays out in a real interface.

Export code

/* CSS Custom Properties */
:root {
  --background: #dff0ea;
  --surface: #f1f8f6;
  --text-primary: #111827;
  --text-secondary: #6e797f;
  --primary: #279e73;
  --secondary: #2c62b9;
  --accent: #2c62b9;
}

/* Tailwind CSS config (extend.colors) */
module.exports = {
  theme: {
    extend: {
      colors: {
        'background': '#dff0ea',
        'surface': '#f1f8f6',
        'text-primary': '#111827',
        'text-secondary': '#6e797f',
        'primary': '#279e73',
        'secondary': '#2c62b9',
        'accent': '#2c62b9',
      }
    }
  }
};

Related tailwind css palettes