Toolman

#2E1065 color

#2E1065#2E1065

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
RGBrgb(46, 16, 101)
HSLhsl(261, 73%, 23%)
CMYKcmyk(54%, 84%, 0%, 60%)
Decimal3018853
CSScolor: #2E1065;
Android0xFF2E1065
SwiftUIColor(red: 0.180, green: 0.063, blue: 0.396, alpha: 1)

Accessibility and contrast

White text on #2E106515.24:1 — AA pass · AA large pass · AAA pass
Black text on #2E10651.38:1 — AA fail · AA large fail · AAA fail
Recommended text colorwhite

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.

95%
85%
75%
65%
55%
45%
35%
25%
15%

Colors that go with #2E1065

Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.

Complementary
Triadic +120°
Triadic +240°
Analogous −30°
Analogous +30°
Split −150°
Split +150°

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.

Convert any color → · Browse all colors