#340072 color

#340072 rgb(52, 0, 114)
Shades of purple

The hex color #340072 is a dark, vivid violet.

In the RGB color model it is made of 20.4% red, 0% green and 44.7% blue (52, 0, 114).

Its hue angle is 267°, with 100% saturation and 22% lightness. For print, the CMYK equivalent is 54% cyan, 100% magenta, 0% yellow and 55% black.

The closest named color is Galactic Federation (#330077), a difference of 0.9 ΔE, which is barely visible.

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

#340072 color codes

HEX#340072
RGBrgb(52, 0, 114)
RGB percentrgb(20.4%, 0%, 44.7%)
HSLhsl(267, 100%, 22%)
HSV / HSBhsv(267, 100%, 45%)
CMYKcmyk(54%, 100%, 0%, 55%)
CIE LABlab(15.19, 45.78, -51.88)
CIE LCHlch(15.19, 69.19, 311.43)
CIE XYZxyz(4.453, 1.945, 16.057)
Decimal3407986
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #340072, 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 #340072RatioAAAAAAA large
Sample text1.39:1FailFailFail
Sample text15.12:1PassPassPass
#340072 as text onRatioAAAAAAA large
Sample text15.12:1PassPassPass
Sample text1.39: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 #340072 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #340072; }
.text { color: #340072; }
.border { border: 2px solid #340072; }
.transparent { background-color: rgb(52 0 114 / 50%); }
.gradient { background: linear-gradient(to right, #340072, #6d0072); }
Background
Text color
Border

Similar colors

Questions

What color is #340072?
#340072 is a dark, vivid violet, closest to the named color Galactic Federation. It belongs to the purple family of colors.
What is the RGB value of #340072?
The RGB value is 52, 0, 114: 52 red, 0 green and 114 blue on a 0 to 255 scale.
What is the complementary color of #340072?
The complementary color is #3E7200, found by rotating the hue 180° on the color wheel.
Is black or white text better on #340072?
White text. Black text has a contrast ratio of 1.39:1 and white text 15.12:1. WCAG asks for at least 4.5:1 for normal text.