#DFE3EE
#33407E
#1F2A60
#080D28
Background
Primary Accent
Secondary
Body Text

Midnight Indigo Color Palette

#DFE3EE · #33407E · #1F2A60 · #080D28

AAA
WCAG Grade
14.9:1
Contrast Ratio
767
Saves
1,998
AI Copies
AI Prompt

Use #DFE3EE as the background. Use #33407E as the primary accent. Use #1F2A60 as secondary. Use #080D28 as body text/supporting color. Palette mood: Midnight Indigo — night, cool, moody, royal, mono.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Midnight Indigo color scheme. Use these values for web design (HEX/RGB), print projects (CMYK), or specialized design software (HSL).

Swatch Design Role HEX RGB CMYK HSL
Background
Luminance: 76.8%
223, 227, 238 6%, 5%, 0%, 7% 224°, 31%, 90%
Primary Accent
Luminance: 5.9%
51, 64, 126 60%, 49%, 0%, 51% 230°, 42%, 35%
Secondary
Luminance: 2.8%
31, 42, 96 68%, 56%, 0%, 62% 230°, 51%, 25%
Body Text
Luminance: 0.5%
8, 13, 40 80%, 67%, 0%, 84% 231°, 67%, 9%

Midnight Indigo Tints & Shades

Hover states, borders and elevation need lighter and darker steps of your base colors. Here are computed tints and shades for every color in the Midnight Indigo palette — click any swatch to copy its hex.

#DFE3EE gently saturated blue
#33407E gently saturated blue
#1F2A60 gently saturated blue
#080D28 saturated blue

Midnight Indigo Palette Contrast Matrix (WCAG 2.1)

Every color tested as text on every other color as background. Body copy needs 4.5:1 (AA), large text and UI components 3:1. AAA requires 7:1.

Text on Background Preview Ratio Grade Safe For
#080D28 on #DFE3EE
Aa Sample Text
14.89:1 AAA Body text, headings, UI
#DFE3EE on #080D28
Aa Sample Text
14.89:1 AAA Body text, headings, UI
#1F2A60 on #DFE3EE
Aa Sample Text
10.50:1 AAA Body text, headings, UI
#DFE3EE on #1F2A60
Aa Sample Text
10.50:1 AAA Body text, headings, UI
#33407E on #DFE3EE
Aa Sample Text
7.52:1 AAA Body text, headings, UI
#DFE3EE on #33407E
Aa Sample Text
7.52:1 AAA Body text, headings, UI
#080D28 on #33407E
Aa Sample Text
1.98:1 Fail Decorative use only
#33407E on #080D28
Aa Sample Text
1.98:1 Fail Decorative use only
#080D28 on #1F2A60
Aa Sample Text
1.42:1 Fail Decorative use only
#1F2A60 on #080D28
Aa Sample Text
1.42:1 Fail Decorative use only
#1F2A60 on #33407E
Aa Sample Text
1.40:1 Fail Decorative use only
#33407E on #1F2A60
Aa Sample Text
1.40:1 Fail Decorative use only

Midnight Indigo Color Psychology & Meaning

Midnight is not actually black, and anyone who has spent a night outdoors knows the sky settles into a blue that the eye keeps insisting is grey, and this palette is star pale with twelve deep. It feels absolute and deep, the color of the hour with no traffic.

Color Harmony: Analogous Scheme

The Midnight Indigo palette is built using a analogous relationship between its hues. This ensures that even with high-contrast accents, the overall scheme feels balanced and intentional.

Hue Wheel

A analogous palette is often preferred by professional designers because it creates a calm, serene atmosphere by using neighboring colors.

History & Design Context

True midnight refers to the sun's position rather than a clock time, and away from light pollution the night sky's colour is dominated by airglow, which is genuinely blue-green.

Best Design Use Cases

Use the star pale for backgrounds, midnight indigo for primary actions, twelve deep for highlights, and void dark for text.

Industries This Palette Suits

Fine fragrance, jewellery, publishing, editorial and museum identity.

Colors That Pair Well With Midnight Indigo

Need a fifth color? These three companions are computed from the palette's own hue positions on the color wheel, so they extend the scheme without breaking its harmony.

yellow

directly opposite #33407E on the wheel — the strongest accent for CTAs and highlights when you need maximum energy

violet

30° beside #33407E — a calm secondary that extends the palette without adding tension

tinted neutral

a ink-black carrying the palette's own hue — perfect for surfaces and dividers

Using Midnight Indigo Without Breaking Accessibility

  • Use #33407E for buttons and links — it scores 7.5:1 against the #DFE3EE background (above the 3:1 UI-components threshold).
  • Set body text in #080D28 — 14.9:1 against #DFE3EE passes WCAG AA (AAA) for long-form reading.
  • Let #1F2A60 carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #33407E.

How to Implement the Midnight Indigo Color Scheme

To use this Midnight Indigo color palette in your web project, you can copy the following CSS variables or Tailwind CSS configuration. These roles ensure your UI maintains accessibility and visual hierarchy.

Option 1: CSS Variables

:root { 
  /* {name} Palette - ihatecolors.com */{'
'}  --color-bg: {colors[0]};{'
'}  --color-primary: {colors[1]};{'
'}  --color-secondary: {colors[2]};{'
'}  --color-text: {colors[3]};{'
'} {'}'}

Web Design Tip

Use #DFE3EE for the main background and #33407E for primary buttons. This creates a high-contrast focal point.

Accessibility Note

The contrast ratio between #080D28 and #DFE3EE is 14.89:1 (AAA). Ensure your body text remains legible.

Midnight Indigo Palette — Frequently Asked Questions

What are the hex codes in the Midnight Indigo color palette?

The Midnight Indigo palette contains #DFE3EE, #33407E, #1F2A60, #080D28. Click any swatch on this page to copy its value, or export all four at once as CSS variables, Tailwind config, SCSS or a Figma-ready list.

Is the Midnight Indigo color palette accessible (WCAG)?

Yes for its strongest pairings: #080D28 on #DFE3EE reaches 14.9:1 (AAA). For body text always keep a 4.5:1 ratio and for large UI elements 3:1 — the full contrast matrix above shows the exact score for every color-on-color combination in this palette.

What colors go well with the Midnight Indigo palette?

Beyond its own four colors, #7F7234, #503D76, #131416 extend it naturally: the complementary hue for high-energy accents, an analogous neighbor for calm transitions, and a tinted neutral for surfaces. All three are computed from this palette's hues on the color wheel.

What mood does the Midnight Indigo palette create?

Midnight Indigo reads as night, cool, moody. Gently saturated blue drives the personality, grounded by gently saturated blue — a combination that works best when the very light base gets most of the canvas.

Can I use the Midnight Indigo color palette commercially?

Yes. Individual color values can't be copyrighted, so the Midnight Indigo palette is free for personal, client and commercial work — websites, branding, apps, print and social content, with no attribution required.

How do I add the Midnight Indigo palette to Tailwind or CSS?

Use the export panel on this page: CSS variables, a Tailwind config block, SCSS variables, or a Figma copy list are generated from Midnight Indigo's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦
Skip to content