Stargazing Night Color Palette
#0A0A1A · #1A1A3A · #5A5A8A · #E8E0C8
Use #0A0A1A as the background. Use #1A1A3A as the primary accent. Use #5A5A8A as secondary. Use #E8E0C8 as body text/supporting color. Palette mood: Stargazing Night — nocturnal, calm, wondrous.
Hex Codes, RGB & CMYK Color Values
Technical breakdown for the Stargazing Night 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.4% | 10, 10, 26 | 62%, 62%, 0%, 90% | 240°, 44%, 7% | ||
| Decorative / accent Luminance: 1.3% | 26, 26, 58 | 55%, 55%, 0%, 77% | 240°, 38%, 16% | ||
| Large text / UI Luminance: 11.3% | 90, 90, 138 | 35%, 35%, 0%, 46% | 240°, 21%, 45% | ||
| Text · AAA Luminance: 74.6% | 232, 224, 200 | 0%, 3%, 14%, 9% | 45°, 41%, 85% |
Stargazing Night 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 Stargazing Night palette — click any swatch to copy its hex.
Stargazing Night 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 |
|---|---|---|---|---|
| #E8E0C8 on #0A0A1A |
Aa Sample Text
| 14.86:1 | AAA | Body text, headings, UI |
| #0A0A1A on #E8E0C8 |
Aa Sample Text
| 14.86:1 | AAA | Body text, headings, UI |
| #E8E0C8 on #1A1A3A |
Aa Sample Text
| 12.71:1 | AAA | Body text, headings, UI |
| #1A1A3A on #E8E0C8 |
Aa Sample Text
| 12.71:1 | AAA | Body text, headings, UI |
| #E8E0C8 on #5A5A8A |
Aa Sample Text
| 4.87:1 | AA | Body text, UI |
| #5A5A8A on #E8E0C8 |
Aa Sample Text
| 4.87:1 | AA | Body text, UI |
| #5A5A8A on #0A0A1A |
Aa Sample Text
| 3.04:1 | Fail | Large headings, UI components |
| #0A0A1A on #5A5A8A |
Aa Sample Text
| 3.04:1 | Fail | Large headings, UI components |
| #5A5A8A on #1A1A3A |
Aa Sample Text
| 2.60:1 | Fail | Decorative use only |
| #1A1A3A on #5A5A8A |
Aa Sample Text
| 2.60:1 | Fail | Decorative use only |
| #1A1A3A on #0A0A1A |
Aa Sample Text
| 1.16:1 | Fail | Decorative use only |
| #0A0A1A on #1A1A3A |
Aa Sample Text
| 1.16:1 | Fail | Decorative use only |
Color Harmony: Complementary
Two hue groups sit 165° apart (45°, 240°) — close to opposite sides of the wheel.
Opposite hues give the strongest contrast in the set; keep one as the surface and the other in small areas so they do not vibrate against each other.
History & Design Context
Best Design Use Cases
Measured best pair: #E8E0C8 on #0A0A1A at 14.86:1 (AAA). Use this pair for paragraph copy; the surface roles above are not body-text prescriptions.
Colors That Pair Well With Stargazing Night
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 #1A1A3A on the wheel — the strongest accent for CTAs and highlights when you need maximum energy
30° beside #1A1A3A — 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 Stargazing Night Without Breaking Accessibility
- Avoid #1A1A3A for small UI elements on #0A0A1A — at 1.16:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
- Set body text in #E8E0C8 — 14.86:1 against #0A0A1A passes WCAG AA (AAA) for long-form reading.
- Let #5A5A8A carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #1A1A3A.
How to Implement the Stargazing Night Color Scheme
To use this Stargazing Night 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 {
/* Stargazing Night — ihatecolors */
--color-bg: #0A0A1A;
--color-accent: #1A1A3A;
--color-secondary: #5A5A8A;
--color-text: #E8E0C8;
} Web Design Tip
#1A1A3A on #0A0A1A measures 1.16:1 — the two are nearly indistinguishable, so this pair cannot separate a control from the page. Pick a different slot for actions, or use the darkest shade in the ramp.
Accessibility Note
Body copy in #E8E0C8 on #0A0A1A measures 14.86:1, which passes WCAG AAA for normal text.
Stargazing Night Palette — Frequently Asked Questions
What are the hex codes in the Stargazing Night color palette?
The Stargazing Night palette contains #0A0A1A, #1A1A3A, #5A5A8A, #E8E0C8. 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 Stargazing Night color palette accessible (WCAG)?
Yes. #E8E0C8 on #0A0A1A reaches 14.86: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 Stargazing Night palette?
Beyond its own four colors, #7B7B37, #291D34, #EBEBEF 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 Stargazing Night palette create?
Stargazing Night reads as nocturnal, calm, wondrous. Gently saturated 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 Stargazing Night color palette commercially?
Yes. Individual color values can't be copyrighted, so the Stargazing Night 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 Stargazing Night 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 Stargazing Night's exact values, including the tint and shade ramps shown above.