Moonlight
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% |
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.
A analogous palette is often preferred by professional designers because it creates a calm, serene atmosphere by using neighboring colors.
History & Design Context
Best Design Use Cases
Industries This Palette Suits
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.