#2E1065 color
The swatch above shows #2E1065 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.
#2E1065 is a dark, vivid violet, closest to the CSS named color midnightblue (#191970).
It is also a Tailwind CSS default: violet-950. That means you can write bg-violet-950 or text-violet-950 directly, with no arbitrary-value brackets and no entry in your theme config.
Color values
| HEX | #2E1065 |
| RGB | rgb(46, 16, 101) |
| HSL | hsl(261, 73%, 23%) |
| CMYK | cmyk(54%, 84%, 0%, 60%) |
| Decimal | 3018853 |
| CSS | color: #2E1065; |
| Android | 0xFF2E1065 |
| Swift | UIColor(red: 0.180, green: 0.063, blue: 0.396, alpha: 1) |
Accessibility and contrast
| White text on #2E1065 | 15.24:1 — AA pass · AA large pass · AAA pass |
| Black text on #2E1065 | 1.38: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 #2E1065
Each swatch keeps the hue and saturation of #2E1065 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #2E1065
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #2E1065 in code
/* CSS */
.element { color: #2E1065; background-color: #2E1065; }
.element { color: rgb(46 16 101); }
.element { color: hsl(261 73% 23%); }
/* Tailwind */
<div class="bg-violet-950 text-white">
/* SCSS variable */
$brand: #2E1065;
Frequently asked questions
What color is #2E1065?
#2E1065 is a dark, vivid violet. Its hue sits at 261° on the color wheel, with 73% saturation and 23% lightness.
What is #2E1065 in RGB?
#2E1065 converts to rgb(46, 16, 101) — 46 red, 16 green and 101 blue.
What is #2E1065 in CMYK?
Approximately cmyk(54%, 84%, 0%, 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 #2E1065 be white or black?
White gives the better contrast ratio (15.24:1 versus 1.38:1).
What is the complementary color of #2E1065?
#476510 — the hue directly opposite #2E1065 on the color wheel.