Skip to content
#22304E
#5E7AA0
#D8DCE0
#0C1220
Background
Decorative / accent
Text · AAA
Decorative / accent

Moon Path Color Palette

#22304E · #5E7AA0 · #D8DCE0 · #0C1220

Fail
WCAG Grade
1.42:1
Contrast Ratio
AI Prompt

Use #22304E as the background. Use #5E7AA0 as the primary accent. Use #D8DCE0 as secondary. Use #0C1220 as body text/supporting color. Palette mood: Moon Path — night, ocean, cool, moody.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Moon Path 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: 3.0%
34, 48, 78 56%, 38%, 0%, 69% 221°, 39%, 22%
Decorative / accent
Luminance: 18.8%
94, 122, 160 41%, 24%, 0%, 37% 215°, 26%, 50%
Text · AAA
Luminance: 71.2%
216, 220, 224 4%, 2%, 0%, 12% 210°, 11%, 86%
Decorative / accent
Luminance: 0.6%
12, 18, 32 62%, 44%, 0%, 87% 222°, 45%, 9%

Moon Path 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 Moon Path palette — click any swatch to copy its hex.

#22304E gently saturated blue
#5E7AA0 gently saturated cyan-blue
#D8DCE0 muted cyan-blue
#0C1220 gently saturated blue

Moon Path 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
#0C1220 on #D8DCE0
Aa Sample Text
13.56:1 AAA Body text, headings, UI
#D8DCE0 on #0C1220
Aa Sample Text
13.56:1 AAA Body text, headings, UI
#D8DCE0 on #22304E
Aa Sample Text
9.51:1 AAA Body text, headings, UI
#22304E on #D8DCE0
Aa Sample Text
9.51:1 AAA Body text, headings, UI
#0C1220 on #5E7AA0
Aa Sample Text
4.24:1 Fail Large headings, UI components
#5E7AA0 on #0C1220
Aa Sample Text
4.24:1 Fail Large headings, UI components
#D8DCE0 on #5E7AA0
Aa Sample Text
3.19:1 Fail Large headings, UI components
#5E7AA0 on #D8DCE0
Aa Sample Text
3.19:1 Fail Large headings, UI components
#5E7AA0 on #22304E
Aa Sample Text
2.97:1 Fail Decorative use only
#22304E on #5E7AA0
Aa Sample Text
2.97:1 Fail Decorative use only
#0C1220 on #22304E
Aa Sample Text
1.42:1 Fail Decorative use only
#22304E on #0C1220
Aa Sample Text
1.42:1 Fail Decorative use only

Palette Details

A path of moonlight on water widens as it approaches the viewer and narrows to a point at the horizon, changing shape with every ripple. Three of the four colors are balanced (26–45%) and the other is muted (11%), with lightness running 9–86%. Body text #0C1220 on #22304E measures 1.42:1 (no WCAG text threshold); the accent #5E7AA0 measures 2.97:1 against the same background.

Color Harmony: Monochromatic

3 of 4 colors sit at essentially the same hue (219°, blue); the palette varies them by lightness and saturation rather than hue.

Hue Wheel

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

The glitter path of any light on water is always aligned with the viewer, which is why it appears to follow you along a shore and never appears in the same place to two people.

Best Design Use Cases

Use the night water for hero surfaces, path blue for interactive elements, moon silver for accents, and water black for text.

Measured best pair: #0C1220 on #D8DCE0 at 13.56:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.

Colors That Pair Well With Moon Path

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.

orange

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

blue

30° beside #5E7AA0 — a calm secondary that extends the palette without adding tension

tinted neutral

a paper-white carrying the palette's own hue — perfect for surfaces and dividers

Using Moon Path Without Breaking Accessibility

  • Avoid #5E7AA0 for small UI elements on #22304E — at 2.97:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
  • Don't set body copy in #0C1220 on #22304E — 1.42:1 fails WCAG AA; keep it for large decorative headings only.
  • Don't use #D8DCE0 behind body text — this light tone works better for surfaces, badges and dividers than for reading areas.

How to Implement the Moon Path Color Scheme

To use this Moon Path 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 {
  /* Moon Path — ihatecolors */
  --color-bg: #22304E;
  --color-accent: #5E7AA0;
  --color-secondary: #D8DCE0;
  --color-text: #0C1220;
}

Web Design Tip

#5E7AA0 on #22304E measures 2.97: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

#0C1220 on #22304E measures 1.42:1, which fails every WCAG text threshold. The strongest pair in this palette is #0C1220 on #D8DCE0 at 13.56:1 — use that pair for normal text instead.

Moon Path Palette — Frequently Asked Questions

What are the hex codes in the Moon Path color palette?

The Moon Path palette contains #22304E, #5E7AA0, #D8DCE0, #0C1220. 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 Moon Path color palette accessible (WCAG)?

Yes. #0C1220 on #D8DCE0 reaches 13.56: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 Moon Path palette?

Beyond its own four colors, #A1855E, #6E6B94, #EBEDEF 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 Moon Path palette create?

Moon Path reads as night, ocean, cool. Gently saturated cyan-blue drives the personality, grounded by gently saturated blue — a combination that works best when the deep base gets most of the canvas.

Can I use the Moon Path color palette commercially?

Yes. Individual color values can't be copyrighted, so the Moon Path 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 Moon Path 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 Moon Path's exact values, including the tint and shade ramps shown above.

Similar Palettes

Live Preview
Generate Similar ✦