#342D5F color

#342D5F rgb(52, 45, 95)
Shades of blue

The hex color #342D5F is a dark, desaturated blue.

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

Its hue angle is 248°, with 36% saturation and 27% lightness. For print, the CMYK equivalent is 45% cyan, 53% magenta, 0% yellow and 63% black.

The closest named color is Purple Noir (#322C56), a difference of 2.2 ΔE, a small difference.

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

#342D5F color codes

HEX#342D5F
RGBrgb(52, 45, 95)
RGB percentrgb(20.4%, 17.6%, 37.3%)
HSLhsl(248, 36%, 27%)
HSV / HSBhsv(248, 53%, 37%)
CMYKcmyk(45%, 53%, 0%, 63%)
CIE LABlab(21.7, 17.3, -28.86)
CIE LCHlch(21.7, 33.65, 300.93)
CIE XYZxyz(4.42, 3.433, 11.254)
Decimal3419487
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

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

Similar colors

Closest common color name: Dark Slate Blue.

Questions

What color is #342D5F?
#342D5F is a dark, desaturated blue, closest to the named color Purple Noir. It belongs to the blue family of colors.
What is the RGB value of #342D5F?
The RGB value is 52, 45, 95: 52 red, 45 green and 95 blue on a 0 to 255 scale.
What is the complementary color of #342D5F?
The complementary color is #585F2D, found by rotating the hue 180° on the color wheel.
Is black or white text better on #342D5F?
White text. Black text has a contrast ratio of 1.69:1 and white text 12.45:1. WCAG asks for at least 4.5:1 for normal text.