Midnight Slate

أردوازي منتصف الليل

Color codes

HEX
RGB
HSL
HSV
CMYK (approximate)
CIELAB
CSS
Relative luminance0.0088

Shades of Midnight Slate

All shades

Lighter

Darker

Tints mixed with white

Tones mixed with gray

Color harmonies

Complementary

Opposite on the wheel (180°): maximum contrast for accents.

Export
Analogous

Neighbors 30° apart: calm and natural.

Export
Triadic

Three hues 120° apart: vibrant yet balanced.

Export
Split-complementary

The base plus the two neighbors of its complement: contrast with less tension.

Export
Tetradic

Four hues 90° apart: rich, best with one dominant color.

Export
Monochromatic

One hue in several lightness levels: elegant and consistent.

Export

Contrast and readability

White text17.85:1
✓ AA✓ AAA✓ AA Large
Black text1.18:1
✗ AA✗ AAA✗ AA Large
On white17.85:1
✓ AA✓ AAA✓ AA Large
On black1.06:1
✗ AA✗ AAA✗ AA Large

Text colors that pass AA

Check in the contrast checker

In a design

Plan your next project

A short paragraph shows how body text sits next to the color.

Get started Learn more
New

Cards and badges use a soft tint of the color. Read more

Plan your next project

A short paragraph shows how body text sits next to the color.

Get started
New

Cards and badges use a soft tint of the color.

Midnight Slate

Full-color background with readable text.

Get started

About Midnight Slate

Midnight Slate (#0F172A) is a very dark, moderately saturated color from the Blue family with a cool character. It is made of 15 red, 23 green and 42 blue (hsl(222, 47%, 11%)). Its contrast ratio is 17.85:1 against white and 1.18:1 against black, so white text reads best on it.

Suggested uses

  • text and headings
  • dark mode surfaces and elegant accents
  • calm, trustworthy or technical themes

Reading the codes

In HEX, #0F172A stores red, green and blue as pairs of base-16 digits: 15, 23 and 42 out of 255. In HSL the same color has a hue of 222°, 47% saturation and 11% lightness, which makes lighter or darker variants easy to create by changing only the lightness.

Similar colors

Palettes with this color

Tools for this color

Frequently asked questions

What is the HEX code of Midnight Slate?
The HEX code of Midnight Slate is #0F172A. In RGB it is rgb(15, 23, 42) and in HSL hsl(222, 47%, 11%).
Which text color works on Midnight Slate?
White text has a contrast ratio of 17.85:1 on Midnight Slate and black text 1.18:1, so white text is more readable. WCAG AA needs at least 4.5:1 for normal text.
What is the complementary color of Midnight Slate?
Rotating the hue of Midnight Slate by 180° gives #2A220F, its complementary color on the RGB color wheel.
What is Midnight Slate in CMYK?
An approximate CMYK value for Midnight Slate is cmyk(64%, 45%, 0%, 84%). For printing, ask your printer for an ICC-profiled conversion.