Space Cadet color code: #1D2951

A recognised named navy with a soft violet undertone and strong contrast against white.

Midnight Navy
#1D2951

Space Cadet · rgb(29, 41, 81)

Every format for Space Cadet

HEX
#1D2951
RGB
rgb(29, 41, 81)
HSL
hsl(226, 47%, 22%)
HSV
226°, 64%, 32%
CMYK
64%, 49%, 0%, 68%
Lightness
22% · dark

Hue sits at 226°, which makes Space Cadet a true blue navy, with 47% saturation. In the Midnight Navy family it reads as a dark option.

Text contrast on Space Cadet

Contrast ratios are calculated using the WCAG 2.1 relative luminance formula. Normal body text needs 4.5:1 and large text needs 3:1 to pass AA.

White text on Space Cadet

The quick brown fox jumps over the lazy dog.

14.11:1 — AAA for normal text

Black text on Space Cadet

The quick brown fox jumps over the lazy dog.

1.49:1 — below AA, decorative use only

Space Cadet text on white

The quick brown fox jumps over the lazy dog.

14.11:1 — AAA for normal text

Accessibility notes

  • Pair Space Cadet with white text for the strongest reading experience: that combination gives 14.11:1.
  • Used as a text colour on white, it clears the 3:1 bar for large headings.
  • Never rely on Space Cadet alone to communicate state. Add an icon, label or underline so the meaning survives for colour-blind users and in greyscale printing.
  • When placing text over a photograph tinted with Space Cadet, add a solid overlay first. Contrast measured against a flat colour does not hold over varying imagery.

Using Space Cadet in CSS and HTML

CSS example

:root {
  --space-cadet: #1D2951;
}

.panel {
  background-color: var(--space-cadet);
  color: #FFFFFF;
  border: 1px solid #1D2951;
}

HTML example

<div style="background-color: #1D2951; color: #FFFFFF; padding: 1rem;">
  Space Cadet #1D2951
</div>

Common uses

  • Page and section backgrounds in dark interfaces, where it holds white text cleanly.
  • Midnight Navy palettes for brand systems that need a dependable cool anchor.
  • Print work where a deep blue is preferred to black, using the CMYK build 64%, 49%, 0%, 68%.
  • Data visualisation, as one step in a lightness-based navy scale.

Design recommendations

  • Build lighter and darker variants by changing only the lightness in hsl(226, 47%, 22%). Keeping hue fixed is what makes a scale look intentional.
  • Give Space Cadet at least one warm counterweight. A cool palette with no warm accent tends to read as cold rather than calm.
  • Saturation is moderate, which makes this shade forgiving across large areas and long reading sessions.

Complementary and matching colors

Each of these is derived from the hue, saturation and lightness of Space Cadet. Click a swatch to copy it.

Complementary #968036
Split complement #965036
Warm accent #CACC28
Analogous cool #3B89A5
Analogous warm #583BA5
Triadic #7F2E41

Similar navy shades

Midnight Blue

Midnight Navy

HEX
#191970
RGB
25, 25, 112
HSL
240, 64%, 27%
CMYK
78%, 78%, 0%, 56%

Sapphire Night

Midnight Navy

HEX
#0D1B3E
RGB
13, 27, 62
HSL
223, 65%, 15%
CMYK
79%, 56%, 0%, 76%

Charcoal Navy

Midnight Navy

HEX
#1C2331
RGB
28, 35, 49
HSL
220, 27%, 15%
CMYK
43%, 29%, 0%, 81%

Obsidian Blue

Midnight Navy

HEX
#10182B
RGB
16, 24, 43
HSL
222, 46%, 12%
CMYK
63%, 44%, 0%, 83%

Deep Sea Navy

Midnight Navy

HEX
#04203A
RGB
4, 32, 58
HSL
209, 87%, 12%
CMYK
93%, 45%, 0%, 77%

Midnight Navy

Midnight Navy

HEX
#0B132B
RGB
11, 19, 43
HSL
225, 59%, 11%
CMYK
74%, 56%, 0%, 83%

Continue exploring

FAQs about Space Cadet

What is the Space Cadet color code?

The Space Cadet color code is #1D2951 in HEX, rgb(29, 41, 81) in RGB and hsl(226, 47%, 22%) in HSL.

What is the RGB value of Space Cadet?

Space Cadet is rgb(29, 41, 81), meaning 29 units of red, 41 of green and 81 of blue on the 0 to 255 scale.

What is the CMYK value of Space Cadet?

In CMYK, Space Cadet converts to approximately 64%, 49%, 0%, 68%. Printed output will look slightly less saturated than the screen preview because CMYK covers a narrower gamut.

Does white text work on Space Cadet?

White text on Space Cadet gives a contrast ratio of 14.11:1, which is AAA for normal text.

Does black text work on Space Cadet?

Black text on Space Cadet gives a contrast ratio of 1.49:1, which is below AA, decorative use only.

Which colors go with Space Cadet?

Its direct complement is #968036, and the warm accent #CACC28 works well for calls to action. For a quieter scheme, pair it with the analogous blues listed above.

Is Space Cadet a light or dark navy?

At 22% lightness, Space Cadet is classed as a dark navy in this collection.