#0F172A — Tints, Shades & Color Values
#0F172A is a very dark, moderately saturated blue. In Tailwind CSS this exact color is the utility class slate-900 (e.g. bg-slate-900, text-slate-900). Its nearest CSS named color is black (#000000). For readable text on a #0F172A background, white text gives the strongest contrast (17.85:1). Because it is dark, #0F172A suits text, navigation bars, and footers on light backgrounds, and its tints make natural hover and surface colors.
Color Values
| Hex | #0F172A |
|---|---|
| RGB | rgb(15, 23, 42) |
| HSL | hsl(222, 47%, 11%) |
| HSV / HSB | 222°, 64%, 16% |
| Nearest named | black (#000000) |
Need these in another format? Use our hex to RGB converter for quick two-way conversion.
#0F172A in Tailwind CSS (slate-900)
#0F172A ships with Tailwind CSS as slate-900 — use it as bg-slate-900, text-slate-900, or border-slate-900. It sits at step 900 of the slate 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 #0F172A (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
#272e3f -
20% tint
#3f4555 -
30% tint
#575d6a -
40% tint
#6f747f -
50% tint
#878b95 -
60% tint
#9fa2aa -
70% tint
#b7b9bf -
80% tint
#cfd1d4 -
90% tint
#e7e8ea
Shades of #0F172A (Mixed with Black)
Each step blends the base color toward black using new = old × (1 − factor).
-
10% shade
#0e1526 -
20% shade
#0c1222 -
30% shade
#0b101d -
40% shade
#090e19 -
50% shade
#080c15 -
60% shade
#060911 -
70% shade
#05070d -
80% shade
#030508 -
90% shade
#010204
WCAG Contrast & Accessibility
Contrast ratios for text placed on a #0F172A 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 17.85:1 — AA normal: Pass · AA large: Pass · AAA: Pass |
|---|---|
| Black text 1.18: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 #0F172A 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: #111827 (gray-900), #082F49 (sky-950), #1F2937 (gray-800), #030712 (gray-950), #09090B (zinc-950), #1E1B4B (indigo-950).
Frequently Asked Questions
-
What color is #0F172A?
#0F172A is a very dark, moderately saturated blue —
rgb(15, 23, 42). Its nearest CSS named color isblack. In Tailwind CSS it isslate-900. -
How do I make tints and shades of #0F172A?
Mix #0F172A with white for tints and with black for shades. A 20% tint of #0F172A is
#3f4555and a 20% shade is#0c1222— the full 10%–90% ramps are precomputed on this page, or open #0F172A in the generator for finer steps. -
What text color is readable on #0F172A?
White text gives the strongest contrast on a #0F172A background at 17.85:1, which passes WCAG AA and AAA for normal text.
-
What is the Tailwind CSS class for #0F172A?
slate-900— use it asbg-slate-900,text-slate-900, orborder-slate-900. The full slate 50–950 ramp is linked above.
Browse more colors in the color library, or start from any hex code on the HexTints homepage.
#0F172A? Put it on a free link-in-bio page →