Skip to content
Musterli

Dark

Night Train color palette

Deep blues and the warm light of a compartment window.

Open in the palette generator

Lock colors, roll new variations with the space bar and export as image or code.

Colors

Click a value to copy it. Each swatch shows its value in the text color that reads best on it.

  1. Color 1

    Text in white, contrast 18.1:1

  2. Color 2

    Text in white, contrast 13.7:1

  3. Color 3

    Text in white, contrast 7.5:1

  4. Color 4

    Text in black, contrast 9.6:1

  5. Color 5

    Text in black, contrast 16.0:1

Code

The palette as CSS variables for any project and as a theme for Tailwind CSS v4.

CSS variables

:root {
  --palette-1: #0e1624;
  --palette-2: #1f2c4c;
  --palette-3: #40518d;
  --palette-4: #d9a850;
  --palette-5: #f0e0bc;
}

Tailwind theme

@theme {
  --color-night-train-1: oklch(20% 0.031 261.2);
  --color-night-train-2: oklch(29.9% 0.061 266.1);
  --color-night-train-3: oklch(45.1% 0.1 270.1);
  --color-night-train-4: oklch(76% 0.12 79.9);
  --color-night-train-5: oklch(91% 0.05 86.9);
}

Gradients from this palette

The same colors as a gradient. Each card opens the editor with these colors.

Keep working with the palette

Edit the palette or build a full scale from its most colorful entry.

How to use this palette

Use the lightest color as the background and the darkest for text. The strong colors in between work for buttons, links and highlights. Always check the contrast for text; the notes on the swatches show whether black or white reads better.

All color palettes
  • Fireside

    Soot, embers, flame and warm light.

  • Velvet Curtain

    Dark wine, velvet red and golden accents, like a theater.

  • Forest Night

    Five greens from dark undergrowth to moonlight on the leaves.

  • Planetarium

    Night sky, violet nebula, a blue star and starlight.

  • Concrete

    Five neutral grays without a tint, a base for any interface.