#2A124A color

#2A124A rgb(42, 18, 74)
Shades of purple

The hex color #2A124A is a very dark, moderate violet.

In the RGB color model it is made of 16.5% red, 7.1% green and 29% blue (42, 18, 74).

Its hue angle is 266°, with 61% saturation and 18% lightness. For print, the CMYK equivalent is 43% cyan, 76% magenta, 0% yellow and 71% black.

The closest named color is Fabric of Space (#341758), a difference of 2.9 ΔE, a small difference.

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

#2A124A color codes

HEX#2A124A
RGBrgb(42, 18, 74)
RGB percentrgb(16.5%, 7.1%, 29%)
HSLhsl(266, 61%, 18%)
HSV / HSBhsv(266, 76%, 29%)
CMYKcmyk(43%, 76%, 0%, 71%)
CIE LABlab(12.09, 25.77, -30.24)
CIE LCHlch(12.09, 39.73, 310.44)
CIE XYZxyz(2.407, 1.419, 6.624)
Decimal2757194
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #2A124A, 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 #2A124ARatioAAAAAAA large
Sample text1.28:1FailFailFail
Sample text16.36:1PassPassPass
#2A124A as text onRatioAAAAAAA large
Sample text16.36:1PassPassPass
Sample text1.28: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 #2A124A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #2a124a; }
.text { color: #2a124a; }
.border { border: 2px solid #2a124a; }
.transparent { background-color: rgb(42 18 74 / 50%); }
.gradient { background: linear-gradient(to right, #2a124a, #46124a); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #2A124A?
#2A124A is a very dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
What is the RGB value of #2A124A?
The RGB value is 42, 18, 74: 42 red, 18 green and 74 blue on a 0 to 255 scale.
What is the complementary color of #2A124A?
The complementary color is #324A12, found by rotating the hue 180° on the color wheel.
Is black or white text better on #2A124A?
White text. Black text has a contrast ratio of 1.28:1 and white text 16.36:1. WCAG asks for at least 4.5:1 for normal text.