#1F2937 — Tints, Shades & Color Values
#1F2937 is a very dark, muted blue. In Tailwind CSS this exact color is the utility class gray-800 (e.g. bg-gray-800, text-gray-800). Its nearest CSS named color is darkslategray (#2f4f4f). For readable text on a #1F2937 background, white text gives the strongest contrast (14.68:1). Because it is dark, #1F2937 suits text, navigation bars, and footers on light backgrounds, and its tints make natural hover and surface colors.
Color Values
| Hex | #1F2937 |
|---|---|
| RGB | rgb(31, 41, 55) |
| HSL | hsl(215, 28%, 17%) |
| HSV / HSB | 215°, 44%, 22% |
| Nearest named | darkslategray (#2f4f4f) |
Need these in another format? Use our hex to RGB converter for quick two-way conversion.
#1F2937 in Tailwind CSS (gray-800)
#1F2937 ships with Tailwind CSS as gray-800 — use it as bg-gray-800, text-gray-800, or border-gray-800. It sits at step 800 of the gray ramp; every other step links to its own page:
Browse the full Tailwind palette in the color library, or generate in-between steps with the tint & shade generator.
Tints of #1F2937 (Mixed with White)
Each step blends the base color toward white using new = old + (255 − old) × factor. Click a swatch to open it in the generator.
-
10% tint
#353e4b -
20% tint
#4c545f -
30% tint
#626973 -
40% tint
#797f87 -
50% tint
#8f949b -
60% tint
#a5a9af -
70% tint
#bcbfc3 -
80% tint
#d2d4d7 -
90% tint
#e9eaeb
Shades of #1F2937 (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#1c2532 -
20% shade
#19212c -
30% shade
#161d27 -
40% shade
#131921 -
50% shade
#10151c -
60% shade
#0c1016 -
70% shade
#090c11 -
80% shade
#06080b -
90% shade
#030405
WCAG Contrast & Accessibility
Contrast ratios for text placed on a #1F2937 background. WCAG requires 4.5:1 for normal text (AA), 3:1 for large text (AA), and 7:1 for normal text (AAA).
| Text color | White text 14.68:1 — AA normal: Pass · AA large: Pass · AAA: Pass |
|---|---|
| Black text 1.43:1 — AA normal: Fail · AA large: Fail · AAA: Fail |
If neither pure white nor pure black reaches the level you need, pick a lighter tint of #1F2937 from the ramps above as the background instead — small lightness moves change contrast quickly. Test any other pair with the free contrast checker.
More blue colors in the library: #1E293B (slate-800), #082F49 (sky-950), #1E1B4B (indigo-950), #172554 (blue-950), #0F172A (slate-900), #0C4A6E (sky-900).
Frequently Asked Questions
-
What color is #1F2937?
#1F2937 is a very dark, muted blue —
rgb(31, 41, 55). Its nearest CSS named color isdarkslategray. In Tailwind CSS it isgray-800. -
How do I make tints and shades of #1F2937?
Mix #1F2937 with white for tints and with black for shades. A 20% tint of #1F2937 is
#4c545fand a 20% shade is#19212c— the full 10%–90% ramps are precomputed on this page, or open #1F2937 in the generator for finer steps. -
What text color is readable on #1F2937?
White text gives the strongest contrast on a #1F2937 background at 14.68:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #1F2937?
gray-800— use it asbg-gray-800,text-gray-800, orborder-gray-800. The full gray 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#1F2937? Put it on a free link-in-bio page →