Midnight Velvet color: hex code #2A2243

#2A2243 rgb(42, 34, 67)
Shades of blue

Midnight Velvet has the hex code #2A2243. It is a very dark, desaturated violet.

In the RGB color model it is made of 16.5% red, 13.3% green and 26.3% blue (42, 34, 67).

Its hue angle is 255°, with 33% saturation and 20% lightness. For print, the CMYK equivalent is 37% cyan, 49% magenta, 0% yellow and 74% black.

White text is the more readable choice on this background (contrast 14.91:1).

Midnight Velvet (#2A2243) color codes

HEX#2A2243
RGBrgb(42, 34, 67)
RGB percentrgb(16.5%, 13.3%, 26.3%)
HSLhsl(255, 33%, 20%)
HSV / HSBhsv(255, 49%, 26%)
CMYKcmyk(37%, 49%, 0%, 74%)
CIE LABlab(15.7, 12.83, -19.58)
CIE LCHlch(15.7, 23.41, 303.23)
CIE XYZxyz(2.54, 2.041, 5.569)
Decimal2761283
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Midnight Velvet, based on their position on the color wheel.

Complementary

The color opposite on the color wheel (180°). Strongest contrast.

Analogous

Neighbors 30° either side. Calm, natural combinations.

Split complementary

The two colors next to the complement (150° and 210°).

Triadic

Three colors evenly spaced, 120° apart.

Tetradic (square)

Four colors 90° apart.

Shades, tints and tones

Shades (darker, mixed with black)

Tints (lighter, mixed with white)

Tones (mixed with gray)

Contrast and accessibility

Text on #2A2243RatioAAAAAAA large
Sample text1.41:1FailFailFail
Sample text14.91:1PassPassPass
#2A2243 as text onRatioAAAAAAA large
Sample text14.91:1PassPassPass
Sample text1.41:1FailFailFail

WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.

Color blindness simulation

How #2A2243 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #2a2243; }
.text { color: #2a2243; }
.border { border: 2px solid #2a2243; }
.transparent { background-color: rgb(42 34 67 / 50%); }
.gradient { background: linear-gradient(to right, #2a2243, #3a2243); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

See #2A2243 on its hex code page

Questions

What color is #2A2243?
#2A2243 is a very dark, desaturated violet known as Midnight Velvet. It belongs to the blue family of colors.
What is the RGB value of Midnight Velvet?
The RGB value is 42, 34, 67: 42 red, 34 green and 67 blue on a 0 to 255 scale.
What is the complementary color of Midnight Velvet?
The complementary color is #3B4322, found by rotating the hue 180° on the color wheel.
Is black or white text better on #2A2243?
White text. Black text has a contrast ratio of 1.41:1 and white text 14.91:1. WCAG asks for at least 4.5:1 for normal text.