#402639 color
#402639 is a dark, muted magenta, closest to the CSS named color midnightblue (#191970).
Color values
| HEX | #402639 |
| RGB | rgb(64, 38, 57) |
| HSL | hsl(316, 25%, 20%) |
| CMYK | cmyk(0%, 41%, 11%, 75%) |
| Decimal | 4204089 |
| CSS | color: #402639; |
| Android | 0xFF402639 |
| Swift | UIColor(red: 0.251, green: 0.149, blue: 0.224, alpha: 1) |
Accessibility and contrast
| White text on #402639 | 13.51:1 — AA pass · AA large pass · AAA pass |
| Black text on #402639 | 1.55: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 #402639
Each swatch keeps the hue and saturation of #402639 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #402639
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #402639 in code
/* CSS */
.element { color: #402639; background-color: #402639; }
.element { color: rgb(64 38 57); }
.element { color: hsl(316 25% 20%); }
/* Tailwind arbitrary value */
<div class="bg-[#402639] text-white">
/* SCSS variable */
$brand: #402639;
Frequently asked questions
What color is #402639?
#402639 is a dark, muted magenta. Its hue sits at 316° on the color wheel, with 25% saturation and 20% lightness.
What is #402639 in RGB?
#402639 converts to rgb(64, 38, 57) — 64 red, 38 green and 57 blue.
What is #402639 in CMYK?
Approximately cmyk(0%, 41%, 11%, 75%). 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 #402639 be white or black?
White gives the better contrast ratio (13.51:1 versus 1.55:1).
What is the complementary color of #402639?
#26402D — the hue directly opposite #402639 on the color wheel.