The Moon Color Palette
#3A4A6E · #6E82A8 · #C8D4E8 · #0E1424
Use #3A4A6E as the background. Use #6E82A8 as the primary accent. Use #C8D4E8 as secondary. Use #0E1424 as body text/supporting color. Palette mood: The Moon — mysterious, dreamy, intuitive.
Hex Codes, RGB & CMYK Color Values
Technical breakdown for the The Moon 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: 6.9% | 58, 74, 110 | 47%, 33%, 0%, 57% | 222°, 31%, 33% | ||
| Decorative / accent Luminance: 22.1% | 110, 130, 168 | 35%, 23%, 0%, 34% | 219°, 25%, 55% | ||
| Text · AA Luminance: 65.2% | 200, 212, 232 | 14%, 9%, 0%, 9% | 218°, 41%, 85% | ||
| Decorative / accent Luminance: 0.7% | 14, 20, 36 | 61%, 44%, 0%, 86% | 224°, 44%, 10% |
The Moon 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 The Moon palette — click any swatch to copy its hex.
The Moon 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 |
|---|---|---|---|---|
| #0E1424 on #C8D4E8 |
Aa Sample Text
| 12.26:1 | AAA | Body text, headings, UI |
| #C8D4E8 on #0E1424 |
Aa Sample Text
| 12.26:1 | AAA | Body text, headings, UI |
| #C8D4E8 on #3A4A6E |
Aa Sample Text
| 5.88:1 | AA | Body text, UI |
| #3A4A6E on #C8D4E8 |
Aa Sample Text
| 5.88:1 | AA | Body text, UI |
| #0E1424 on #6E82A8 |
Aa Sample Text
| 4.73:1 | AA | Body text, UI |
| #6E82A8 on #0E1424 |
Aa Sample Text
| 4.73:1 | AA | Body text, UI |
| #C8D4E8 on #6E82A8 |
Aa Sample Text
| 2.58:1 | Fail | Decorative use only |
| #6E82A8 on #C8D4E8 |
Aa Sample Text
| 2.58:1 | Fail | Decorative use only |
| #6E82A8 on #3A4A6E |
Aa Sample Text
| 2.27:1 | Fail | Decorative use only |
| #3A4A6E on #6E82A8 |
Aa Sample Text
| 2.27:1 | Fail | Decorative use only |
| #0E1424 on #3A4A6E |
Aa Sample Text
| 2.08:1 | Fail | Decorative use only |
| #3A4A6E on #0E1424 |
Aa Sample Text
| 2.08:1 | Fail | Decorative use only |
Color Harmony: Monochromatic
4 of 4 colors sit at essentially the same hue (221°, blue); the palette varies them by lightness and saturation rather than hue.
Single-hue palettes are the easiest to keep consistent, but neighbouring slots can look flat — separate them with lightness steps of at least 15%.
History & Design Context
Best Design Use Cases
Measured best pair: #0E1424 on #C8D4E8 at 12.26:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.
Colors That Pair Well With The Moon
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.
directly opposite #6E82A8 on the wheel — the strongest accent for CTAs and highlights when you need maximum energy
30° beside #6E82A8 — a calm secondary that extends the palette without adding tension
a paper-white carrying the palette's own hue — perfect for surfaces and dividers
Using The Moon Without Breaking Accessibility
- Avoid #6E82A8 for small UI elements on #3A4A6E — at 2.27:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
- Don't set body copy in #0E1424 on #3A4A6E — 2.08:1 fails WCAG AA; keep it for large decorative headings only.
- Don't use #C8D4E8 behind body text — this light tone works better for surfaces, badges and dividers than for reading areas.
How to Implement the The Moon Color Scheme
To use this The Moon color palette in your web project, copy the CSS variables below or open the export panel for Tailwind, SCSS and Figma formats.
Option 1: CSS Variables
:root {
/* The Moon — ihatecolors */
--color-bg: #3A4A6E;
--color-accent: #6E82A8;
--color-secondary: #C8D4E8;
--color-text: #0E1424;
} Web Design Tip
#6E82A8 on #3A4A6E measures 2.27:1 — below the 3:1 WCAG threshold for UI components. Use it for decoration only, or darken it with a shade from the ramp before using it for buttons, icons or borders.
Accessibility Note
#0E1424 on #3A4A6E measures 2.08:1, which fails every WCAG text threshold. The strongest pair in this palette is #0E1424 on #C8D4E8 at 12.26:1 — use that pair for normal text instead.
The Moon Palette — Frequently Asked Questions
What are the hex codes in the The Moon color palette?
The The Moon palette contains #3A4A6E, #6E82A8, #C8D4E8, #0E1424. 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 The Moon color palette accessible (WCAG)?
Yes. #0E1424 on #C8D4E8 reaches 12.26:1, which passes WCAG AAA for normal text (7:1) as well as AA and the 3:1 UI threshold — use it for body copy and controls. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.
What colors go well with the The Moon palette?
Beyond its own four colors, #A99570, #807B9D, #ECEDEF 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 The Moon palette create?
The Moon reads as mysterious, dreamy, intuitive. Gently saturated blue drives the personality, grounded by gently saturated blue — a combination that works best when the mid-tone base gets most of the canvas.
Can I use the The Moon color palette commercially?
Yes. Individual color values can't be copyrighted, so the The Moon 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 The Moon 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 The Moon's exact values, including the tint and shade ramps shown above.