#401340 color
The hex color #401340 is a very dark, moderate magenta.
In the RGB color model it is made of 25.1% red, 7.5% green and 25.1% blue (64, 19, 64).
Its hue angle is 300°, with 54% saturation and 16% lightness. For print, the CMYK equivalent is 0% cyan, 70% magenta, 0% yellow and 75% black.
The closest named color is Velvet Cosmos (#441144), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.16:1).
#401340 color codes
| HEX | #401340 | |
|---|---|---|
| RGB | rgb(64, 19, 64) | |
| RGB percent | rgb(25.1%, 7.5%, 25.1%) | |
| HSL | hsl(300, 54%, 16%) | |
| HSV / HSB | hsv(300, 70%, 25%) | |
| CMYK | cmyk(0%, 70%, 0%, 75%) | |
| CIE LAB | lab(15.09, 28.63, -18.24) | |
| CIE LCH | lch(15.09, 33.95, 327.5) | |
| CIE XYZ | xyz(3.273, 1.926, 5.049) | |
| Decimal | 4199232 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #401340, 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 #401340 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.39:1 | Fail | Fail | Fail |
| Sample text | 15.16:1 | Pass | Pass | Pass |
| #401340 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.16:1 | Pass | Pass | Pass |
| Sample text | 1.39: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 #401340 looks to people with the most common types of color vision deficiency.
#0d2241Protanopia
no red cones#1e283fDeuteranopia
no green cones#421927Tritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #401340; }
.text { color: #401340; }
.border { border: 2px solid #401340; }
.transparent { background-color: rgb(64 19 64 / 50%); }
.gradient { background: linear-gradient(to right, #401340, #401329); }
Similar colors
#441144Velvet Cosmos#3b193fCreatures of the Night#442244Purple Void#431c53Plunged Into Darkness#3b0346Romanic Scene#391531Nightly Voyager#551155Cosmic Explorer#2b0f2eDark Prom Queen
Closest common color name: Dark Purple.
Questions
- What color is #401340?
- #401340 is a very dark, moderate magenta, closest to the named color Velvet Cosmos. It belongs to the purple family of colors.
- What is the RGB value of #401340?
- The RGB value is 64, 19, 64: 64 red, 19 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #401340?
- The complementary color is #134013, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #401340?
- White text. Black text has a contrast ratio of 1.39:1 and white text 15.16:1. WCAG asks for at least 4.5:1 for normal text.