#340234 color
The hex color #340234 is a very dark, vivid magenta.
In the RGB color model it is made of 20.4% red, 0.8% green and 20.4% blue (52, 2, 52).
Its hue angle is 300°, with 93% saturation and 11% lightness. For print, the CMYK equivalent is 0% cyan, 96% magenta, 0% yellow and 80% black.
The closest named color is Romanic Scene (#3B0346), a difference of 4.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.44:1).
#340234 color codes
| HEX | #340234 | |
|---|---|---|
| RGB | rgb(52, 2, 52) | |
| RGB percent | rgb(20.4%, 0.8%, 20.4%) | |
| HSL | hsl(300, 93%, 11%) | |
| HSV / HSB | hsv(300, 96%, 20%) | |
| CMYK | cmyk(0%, 96%, 0%, 80%) | |
| CIE LAB | lab(9.17, 30.86, -19.19) | |
| CIE LCH | lch(9.17, 36.34, 328.12) | |
| CIE XYZ | xyz(2.058, 1.022, 3.337) | |
| Decimal | 3408436 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #340234, 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 #340234 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.2:1 | Fail | Fail | Fail |
| Sample text | 17.44:1 | Pass | Pass | Pass |
| #340234 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.44:1 | Pass | Pass | Pass |
| Sample text | 1.2:1 | Fail | Fail | Fail |
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 #340234 looks to people with the most common types of color vision deficiency.
#001635Protanopia
no red cones#101c33Deuteranopia
no green cones#360a1bTritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
CSS examples
.background { background-color: #340234; }
.text { color: #340234; }
.border { border: 2px solid #340234; }
.transparent { background-color: rgb(52 2 52 / 50%); }
.gradient { background: linear-gradient(to right, #340234, #34021b); }
Similar colors
#3b0346Romanic Scene#441144Velvet Cosmos#220033Coal Mine#2b0f2eDark Prom Queen#3b193fCreatures of the Night#3f012cDark Sanctuary#220022Black Sabbath#330022Vienna Roast
Closest common color name: Dark Purple.
Questions
- What color is #340234?
- #340234 is a very dark, vivid magenta, closest to the named color Romanic Scene. It belongs to the black family of colors.
- What is the RGB value of #340234?
- The RGB value is 52, 2, 52: 52 red, 2 green and 52 blue on a 0 to 255 scale.
- What is the complementary color of #340234?
- The complementary color is #023402, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #340234?
- White text. Black text has a contrast ratio of 1.2:1 and white text 17.44:1. WCAG asks for at least 4.5:1 for normal text.