Toolman

#1F2937 color

#1F2937#1F2937

The swatch above shows #1F2937 with its hex code written on it in white and in black, so you can see which of the two is legible before reading the measured ratios below.

#1F2937 is a very dark, muted blue, closest to the CSS named color midnightblue (#191970).

It is also a Tailwind CSS default: gray-800. That means you can write bg-gray-800 or text-gray-800 directly, with no arbitrary-value brackets and no entry in your theme config.

Color values

HEX#1F2937
RGBrgb(31, 41, 55)
HSLhsl(215, 28%, 17%)
CMYKcmyk(44%, 25%, 0%, 78%)
Decimal2042167
CSScolor: #1F2937;
Android0xFF1F2937
SwiftUIColor(red: 0.122, green: 0.161, blue: 0.216, alpha: 1)

Accessibility and contrast

White text on #1F293714.68:1 — AA pass · AA large pass · AAA pass
Black text on #1F29371.43:1 — AA fail · AA large fail · AAA fail
Recommended text colorwhite

WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).

Tints and shades of #1F2937

Each swatch keeps the hue and saturation of #1F2937 and varies only lightness — the quickest way to build a usable scale from a single brand color.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #1F2937

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

Using #1F2937 in code

/* CSS */
.element { color: #1F2937; background-color: #1F2937; }
.element { color: rgb(31 41 55); }
.element { color: hsl(215 28% 17%); }

/* Tailwind */
<div class="bg-gray-800 text-white">

/* SCSS variable */
$brand: #1F2937;

Frequently asked questions

What color is #1F2937?

#1F2937 is a very dark, muted blue. Its hue sits at 215° on the color wheel, with 28% saturation and 17% lightness.

What is #1F2937 in RGB?

#1F2937 converts to rgb(31, 41, 55) — 31 red, 41 green and 55 blue.

What is #1F2937 in CMYK?

Approximately cmyk(44%, 25%, 0%, 78%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.

Should text on #1F2937 be white or black?

White gives the better contrast ratio (14.68:1 versus 1.43:1).

What is the complementary color of #1F2937?

#372D1F — the hue directly opposite #1F2937 on the color wheel.

Convert any color → · Browse all colors