Skip to content
Color Codes

4 colors

Midnight Purple

Design preview

Color details

01Primary
ContrastAa 17.1Aa 1.2
02Secondary
ContrastAa 15.9Aa 1.3
03Accent
ContrastAa 9.6Aa 2.2
04Background
ContrastAa 3.8Aa 5.5

Use this palette

CSS variables

:root {
  --midnight-purple-1: #1A1A2E;
  --midnight-purple-2: #16213E;
  --midnight-purple-3: #533483;
  --midnight-purple-4: #E94560;
}

Tailwind colors

module.exports = {
  theme: {
    extend: {
      colors: {
        'midnight-purple': {
          100: '#1A1A2E',
          200: '#16213E',
          300: '#533483',
          400: '#E94560',
        },
      },
    },
  },
};

Accessible color pairs

Text and background combinations from this palette that meet WCAG AA (4.5:1) for normal text.

No pair in this palette reaches 4.5:1. Use black or white text for body copy.

Named colors in this palette

The closest CSS named color to each swatch.

More palettes

All palettes