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