# Midnight Gradient

> A deep navy-to-purple gradient for dark, premium-feeling sections.

- Category: [CSS Gradients & Patterns](https://copy-css.com/category/gradients)
- Tags: linear, dark, navy, purple, background
- Live preview: https://copy-css.com/snippets/midnight-gradient
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="gradient-midnight"></div>
```

## CSS

```css
.gradient-midnight {
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #581c87 100%);
}
```

## Notes

- This CSS Midnight Gradient is 3 lines of pure CSS (0.1 KB) with no JavaScript and no dependencies. It uses linear gradients.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
