#27272A color
The swatch above shows #27272A 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.
#27272A is a very dark, desaturated grey, closest to the CSS named color midnightblue (#191970).
It is also a Tailwind CSS default: zinc-800. That means you can write bg-zinc-800 or text-zinc-800 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #27272A |
| RGB | rgb(39, 39, 42) |
| HSL | hsl(240, 4%, 16%) |
| CMYK | cmyk(7%, 7%, 0%, 84%) |
| Decimal | 2565930 |
| CSS | color: #27272A; |
| Android | 0xFF27272A |
| Swift | UIColor(red: 0.153, green: 0.153, blue: 0.165, alpha: 1) |
Accessibility and contrast
| White text on #27272A | 14.89:1 — AA pass · AA large pass · AAA pass |
| Black text on #27272A | 1.41:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
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 #27272A
Each swatch keeps the hue and saturation of #27272A and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #27272A
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #27272A in code
/* CSS */
.element { color: #27272A; background-color: #27272A; }
.element { color: rgb(39 39 42); }
.element { color: hsl(240 4% 16%); }
/* Tailwind */
<div class="bg-zinc-800 text-white">
/* SCSS variable */
$brand: #27272A;
Frequently asked questions
What color is #27272A?
#27272A is a very dark, desaturated grey. Its hue sits at 240° on the color wheel, with 4% saturation and 16% lightness.
What is #27272A in RGB?
#27272A converts to rgb(39, 39, 42) — 39 red, 39 green and 42 blue.
What is #27272A in CMYK?
Approximately cmyk(7%, 7%, 0%, 84%). 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 #27272A be white or black?
White gives the better contrast ratio (14.89:1 versus 1.41:1).
What is the complementary color of #27272A?
#2A2A27 — the hue directly opposite #27272A on the color wheel.