#D1D5DB color
The swatch above shows #D1D5DB 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.
#D1D5DB is a very light, muted blue, closest to the CSS named color lightgray (#D3D3D3).
It is also a Tailwind CSS default: gray-300. That means you can write bg-gray-300 or text-gray-300 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #D1D5DB |
| RGB | rgb(209, 213, 219) |
| HSL | hsl(216, 12%, 84%) |
| CMYK | cmyk(5%, 3%, 0%, 14%) |
| Decimal | 13751771 |
| CSS | color: #D1D5DB; |
| Android | 0xFFD1D5DB |
| Swift | UIColor(red: 0.820, green: 0.835, blue: 0.859, alpha: 1) |
Accessibility and contrast
| White text on #D1D5DB | 1.47:1 — AA fail · AA large fail · AAA fail |
| Black text on #D1D5DB | 14.25:1 — AA pass · AA large pass · AAA pass |
| Recommended text color | black |
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 #D1D5DB
Each swatch keeps the hue and saturation of #D1D5DB and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #D1D5DB
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #D1D5DB in code
/* CSS */
.element { color: #D1D5DB; background-color: #D1D5DB; }
.element { color: rgb(209 213 219); }
.element { color: hsl(216 12% 84%); }
/* Tailwind */
<div class="bg-gray-300 text-black">
/* SCSS variable */
$brand: #D1D5DB;
Frequently asked questions
What color is #D1D5DB?
#D1D5DB is a very light, muted blue. Its hue sits at 216° on the color wheel, with 12% saturation and 84% lightness.
What is #D1D5DB in RGB?
#D1D5DB converts to rgb(209, 213, 219) — 209 red, 213 green and 219 blue.
What is #D1D5DB in CMYK?
Approximately cmyk(5%, 3%, 0%, 14%). 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 #D1D5DB be white or black?
Black gives the better contrast ratio (14.25:1 versus 1.47:1).
What is the complementary color of #D1D5DB?
#DBD7D1 — the hue directly opposite #D1D5DB on the color wheel.