#F9FAFB color
The swatch above shows #F9FAFB 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.
#F9FAFB is a very light, muted blue, closest to the CSS named color ghostwhite (#F8F8FF).
It is also a Tailwind CSS default: gray-50. That means you can write bg-gray-50 or text-gray-50 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #F9FAFB |
| RGB | rgb(249, 250, 251) |
| HSL | hsl(210, 20%, 98%) |
| CMYK | cmyk(1%, 0%, 0%, 2%) |
| Decimal | 16382715 |
| CSS | color: #F9FAFB; |
| Android | 0xFFF9FAFB |
| Swift | UIColor(red: 0.976, green: 0.980, blue: 0.984, alpha: 1) |
Accessibility and contrast
| White text on #F9FAFB | 1.05:1 — AA fail · AA large fail · AAA fail |
| Black text on #F9FAFB | 20.10: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 #F9FAFB
Each swatch keeps the hue and saturation of #F9FAFB and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #F9FAFB
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #F9FAFB in code
/* CSS */
.element { color: #F9FAFB; background-color: #F9FAFB; }
.element { color: rgb(249 250 251); }
.element { color: hsl(210 20% 98%); }
/* Tailwind */
<div class="bg-gray-50 text-black">
/* SCSS variable */
$brand: #F9FAFB;
Frequently asked questions
What color is #F9FAFB?
#F9FAFB is a very light, muted blue. Its hue sits at 210° on the color wheel, with 20% saturation and 98% lightness.
What is #F9FAFB in RGB?
#F9FAFB converts to rgb(249, 250, 251) — 249 red, 250 green and 251 blue.
What is #F9FAFB in CMYK?
Approximately cmyk(1%, 0%, 0%, 2%). 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 #F9FAFB be white or black?
Black gives the better contrast ratio (20.10:1 versus 1.05:1).
What is the complementary color of #F9FAFB?
#FBFAF9 — the hue directly opposite #F9FAFB on the color wheel.