Toolman

#2D2640 color

#2D2640#2D2640

#2D2640 is a dark, muted violet, closest to the CSS named color midnightblue (#191970).

Color values

HEX#2D2640
RGBrgb(45, 38, 64)
HSLhsl(256, 25%, 20%)
CMYKcmyk(30%, 41%, 0%, 75%)
Decimal2958912
CSScolor: #2D2640;
Android0xFF2D2640
SwiftUIColor(red: 0.176, green: 0.149, blue: 0.251, alpha: 1)

Accessibility and contrast

White text on #2D264014.36:1 — AA pass · AA large pass · AAA pass
Black text on #2D26401.46: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 #2D2640

Each swatch keeps the hue and saturation of #2D2640 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 #2D2640

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 #2D2640 in code

/* CSS */
.element { color: #2D2640; background-color: #2D2640; }
.element { color: rgb(45 38 64); }
.element { color: hsl(256 25% 20%); }

/* Tailwind arbitrary value */
<div class="bg-[#2D2640] text-white">

/* SCSS variable */
$brand: #2D2640;

Frequently asked questions

What color is #2D2640?

#2D2640 is a dark, muted violet. Its hue sits at 256° on the color wheel, with 25% saturation and 20% lightness.

What is #2D2640 in RGB?

#2D2640 converts to rgb(45, 38, 64) — 45 red, 38 green and 64 blue.

What is #2D2640 in CMYK?

Approximately cmyk(30%, 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 #2D2640 be white or black?

White gives the better contrast ratio (14.36:1 versus 1.46:1).

What is the complementary color of #2D2640?

#394026 — the hue directly opposite #2D2640 on the color wheel.

Convert any color → · Browse all colors