#342D4A color

#342D4A rgb(52, 45, 74)
Shades of blue

The hex color #342D4A is a dark, grayish violet.

In the RGB color model it is made of 20.4% red, 17.6% green and 29% blue (52, 45, 74).

Its hue angle is 254°, with 24% saturation and 23% lightness. For print, the CMYK equivalent is 30% cyan, 39% magenta, 0% yellow and 71% black.

The closest named color is Sanctum of Shadows (#3C2F4E), a difference of 2.5 ΔE, a small difference.

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

#342D4A color codes

HEX#342D4A
RGBrgb(52, 45, 74)
RGB percentrgb(20.4%, 17.6%, 29%)
HSLhsl(254, 24%, 23%)
HSV / HSBhsv(254, 39%, 29%)
CMYKcmyk(30%, 39%, 0%, 71%)
CIE LABlab(20.44, 10.68, -16.85)
CIE LCHlch(20.44, 19.95, 302.36)
CIE XYZxyz(3.59, 3.101, 6.887)
Decimal3419466
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #342D4A, 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 #342D4ARatioAAAAAAA large
Sample text1.62:1FailFailFail
Sample text12.96:1PassPassPass
#342D4A as text onRatioAAAAAAA large
Sample text12.96:1PassPassPass
Sample text1.62: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 #342D4A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #342d4a; }
.text { color: #342d4a; }
.border { border: 2px solid #342d4a; }
.transparent { background-color: rgb(52 45 74 / 50%); }
.gradient { background: linear-gradient(to right, #342d4a, #422d4a); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

Questions

What color is #342D4A?
#342D4A is a dark, grayish violet, closest to the named color Sanctum of Shadows. It belongs to the blue family of colors.
What is the RGB value of #342D4A?
The RGB value is 52, 45, 74: 52 red, 45 green and 74 blue on a 0 to 255 scale.
What is the complementary color of #342D4A?
The complementary color is #434A2D, found by rotating the hue 180° on the color wheel.
Is black or white text better on #342D4A?
White text. Black text has a contrast ratio of 1.62:1 and white text 12.96:1. WCAG asks for at least 4.5:1 for normal text.