Skip to content
#2E3A5E
#141C36
#5E4A8E
#04060E
Background
Decorative / accent
Decorative / accent
Decorative / accent

Deep Space Color Palette

#2E3A5E · #141C36 · #5E4A8E · #04060E

Fail
WCAG Grade
1.81:1
Contrast Ratio
AI Prompt

Use #2E3A5E as the background. Use #141C36 as the primary accent. Use #5E4A8E as secondary. Use #04060E as body text/supporting color. Palette mood: Deep Space — night, cool, moody, royal.

Hex Codes, RGB & CMYK Color Values

Technical breakdown for the Deep Space 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: 4.4%
46, 58, 94 51%, 38%, 0%, 63% 225°, 34%, 27%
Decorative / accent
Luminance: 1.2%
20, 28, 54 63%, 48%, 0%, 79% 226°, 46%, 15%
Decorative / accent
Luminance: 9.2%
94, 74, 142 34%, 48%, 0%, 44% 258°, 31%, 42%
Decorative / accent
Luminance: 0.2%
4, 6, 14 71%, 57%, 0%, 95% 228°, 56%, 4%

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

#2E3A5E gently saturated blue
#141C36 gently saturated blue
#5E4A8E gently saturated violet
#04060E gently saturated blue

Deep Space 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
#04060E on #5E4A8E
Aa Sample Text
2.74:1 Fail Decorative use only
#5E4A8E on #04060E
Aa Sample Text
2.74:1 Fail Decorative use only
#5E4A8E on #141C36
Aa Sample Text
2.27:1 Fail Decorative use only
#141C36 on #5E4A8E
Aa Sample Text
2.27:1 Fail Decorative use only
#04060E on #2E3A5E
Aa Sample Text
1.81:1 Fail Decorative use only
#2E3A5E on #04060E
Aa Sample Text
1.81:1 Fail Decorative use only
#5E4A8E on #2E3A5E
Aa Sample Text
1.51:1 Fail Decorative use only
#2E3A5E on #5E4A8E
Aa Sample Text
1.51:1 Fail Decorative use only
#141C36 on #2E3A5E
Aa Sample Text
1.50:1 Fail Decorative use only
#2E3A5E on #141C36
Aa Sample Text
1.50:1 Fail Decorative use only
#04060E on #141C36
Aa Sample Text
1.20:1 Fail Decorative use only
#141C36 on #04060E
Aa Sample Text
1.20:1 Fail Decorative use only

Palette Details

Deep space is not empty but very cold and very large, with colour coming from gas clouds and old light rather than objects. All four colors are balanced (31–56%), with lightness running 4–42%. Body text #04060E on #2E3A5E measures 1.81:1 (no WCAG text threshold); the accent #141C36 measures 1.50:1 against the same background.

Color Harmony: Analogous

The saturated colors span 33° around 234° (blue) — neighbouring hues, not distinct ones.

Hue Wheel

Neighbouring hues read as cohesive and give little contrast between slots; build hierarchy from the lightness ladder rather than from hue.

History & Design Context

Deep space contains the cosmic microwave background, radiation left from the early universe, and the wavelengths we observe from distant galaxies are stretched by expansion toward red and infrared.

Best Design Use Cases

Use the nebula blue for page backgrounds, space dark for calls to action, nebula violet for card accents, and void black for text.

Measured best pair: #04060E on #5E4A8E at 2.74:1 (Fail). No pair reaches 3:1, so this pairing is decorative only; this palette has no text-safe pair.

Colors That Pair Well With Deep Space

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.

yellow

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

violet

30° beside #141C36 — 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 Deep Space Without Breaking Accessibility

  • Avoid #141C36 for small UI elements on #2E3A5E — at 1.50:1 it misses the 3:1 WCAG threshold; darken it with a shade from the ramp below.
  • Don't set body copy in #04060E on #2E3A5E — 1.81:1 fails WCAG AA; keep it for large decorative headings only.
  • Let #5E4A8E carry sidebars, cards and footers — at a mid lightness it separates zones without stealing focus from #141C36.

How to Implement the Deep Space Color Scheme

To use this Deep Space 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 {
  /* Deep Space — ihatecolors */
  --color-bg: #2E3A5E;
  --color-accent: #141C36;
  --color-secondary: #5E4A8E;
  --color-text: #04060E;
}

Web Design Tip

#141C36 on #2E3A5E measures 1.50: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

#04060E on #2E3A5E measures 1.81:1, which fails every WCAG text threshold; the palette's strongest pair (#04060E on #5E4A8E) reaches only 2.74:1. No pair here is safe for text, so use an external neutral for copy.

Deep Space Palette — Frequently Asked Questions

What are the hex codes in the Deep Space color palette?

The Deep Space palette contains #2E3A5E, #141C36, #5E4A8E, #04060E. 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 Deep Space color palette accessible (WCAG)?

No. The strongest pair, #04060E on #5E4A8E, reaches 2.74:1 — below the 3:1 minimum for large text and UI and below the 4.5:1 needed for body copy. None of these four colours is safe as text on another; use an external neutral for body copy. The full contrast matrix above shows the exact score for every color-on-color pair in this palette.

What colors go well with the Deep Space palette?

Beyond its own four colors, #826F30, #201834, #ECECEF 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 Deep Space palette create?

Deep Space reads as night, cool, moody. 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 Deep Space color palette commercially?

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

Similar Palettes

Live Preview
Generate Similar ✦