#166534 color
The swatch above shows #166534 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.
#166534 is a dark, moderately saturated green, closest to the CSS named color darkgreen (#006400).
It is also a Tailwind CSS default: green-800. That means you can write bg-green-800 or text-green-800 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #166534 |
| RGB | rgb(22, 101, 52) |
| HSL | hsl(143, 64%, 24%) |
| CMYK | cmyk(78%, 0%, 49%, 60%) |
| Decimal | 1467700 |
| CSS | color: #166534; |
| Android | 0xFF166534 |
| Swift | UIColor(red: 0.086, green: 0.396, blue: 0.204, alpha: 1) |
Accessibility and contrast
| White text on #166534 | 7.13:1 — AA pass · AA large pass · AAA pass |
| Black text on #166534 | 2.95: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 #166534
Each swatch keeps the hue and saturation of #166534 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #166534
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #166534 in code
/* CSS */
.element { color: #166534; background-color: #166534; }
.element { color: rgb(22 101 52); }
.element { color: hsl(143 64% 24%); }
/* Tailwind */
<div class="bg-green-800 text-white">
/* SCSS variable */
$brand: #166534;
Frequently asked questions
What color is #166534?
#166534 is a dark, moderately saturated green. Its hue sits at 143° on the color wheel, with 64% saturation and 24% lightness.
What is #166534 in RGB?
#166534 converts to rgb(22, 101, 52) — 22 red, 101 green and 52 blue.
What is #166534 in CMYK?
Approximately cmyk(78%, 0%, 49%, 60%). 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 #166534 be white or black?
White gives the better contrast ratio (7.13:1 versus 2.95:1).
What is the complementary color of #166534?
#641646 — the hue directly opposite #166534 on the color wheel.