#0D1321
#1D3461
#4472C4
#A8C0E8
Background
Primary Accent
Secondary
Body Text

Moonlight

nightcoolcalm winterspring brandingweb
AAA
WCAG Grade
10.0:1
Contrast Ratio
2,102
Saves
5,623
AI Copies
AI Prompt

Use #0D1321 as the background. Use #1D3461 as the primary accent. Use #4472C4 as secondary. Use #A8C0E8 as body text/supporting color. Palette mood: Moonlight — night, cool, calm.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Moonlight 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: 0.7%
13, 19, 33 61%, 42%, 0%, 87% 222°, 43%, 9%
Primary Accent
Luminance: 3.6%
29, 52, 97 70%, 46%, 0%, 62% 220°, 54%, 25%
Secondary
Luminance: 17.2%
68, 114, 196 65%, 42%, 0%, 23% 218°, 52%, 52%
Body Text
Luminance: 51.9%
168, 192, 232 28%, 17%, 0%, 9% 218°, 58%, 78%

Moonlight Color Psychology & Meaning

Moonlight is the world seen without the sun — midnight navy and steel blue, the colors that appear when daylight withdraws and the moon becomes the dominant light.

Color Harmony: Analogous Scheme

The Moonlight 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

Moonlight painting was a genre in 19th century Romanticism. Artists like Caspar David Friedrich and Atkinson Grimshaw documented the distinctive blue-gray of nocturnal landscapes.

Best Design Use Cases

Very deep navy as primary surface. Royal blue for interactive elements. Soft steel blue for accents. Light periwinkle for text.

Industries This Palette Suits

Luxury, technology, nightlife, meditation apps.

How to Implement the Moonlight Color Scheme

To use this Moonlight 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 #0D1321 for the main background and #1D3461 for primary buttons. This creates a high-contrast focal point.

Accessibility Note

The contrast ratio between #A8C0E8 and #0D1321 is 10.04:1 (AAA). Ensure your body text remains legible.

Live Preview
Generate Similar ✦
} } Skip to content > le> >