#3A255A color
The hex color #3A255A is a dark, desaturated violet.
In the RGB color model it is made of 22.7% red, 14.5% green and 35.3% blue (58, 37, 90).
Its hue angle is 264°, with 42% saturation and 25% lightness. For print, the CMYK equivalent is 36% cyan, 59% magenta, 0% yellow and 65% black.
The closest named color is Stormy Night (#372354), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.19:1).
#3A255A color codes
| HEX | #3A255A | |
|---|---|---|
| RGB | rgb(58, 37, 90) | |
| RGB percent | rgb(22.7%, 14.5%, 35.3%) | |
| HSL | hsl(264, 42%, 25%) | |
| HSV / HSB | hsv(264, 59%, 35%) | |
| CMYK | cmyk(36%, 59%, 0%, 65%) | |
| CIE LAB | lab(19.89, 22.81, -28.42) | |
| CIE LCH | lch(19.89, 36.44, 308.75) | |
| CIE XYZ | xyz(4.252, 2.961, 10.018) | |
| Decimal | 3810650 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #3A255A, 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 #3A255A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.59:1 | Fail | Fail | Fail |
| Sample text | 13.19:1 | Pass | Pass | Pass |
| #3A255A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.19:1 | Pass | Pass | Pass |
| Sample text | 1.59: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 #3A255A looks to people with the most common types of color vision deficiency.
#0f305cProtanopia
no red cones#163059Deuteranopia
no green cones#33303bTritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #3a255a; }
.text { color: #3a255a; }
.border { border: 2px solid #3a255a; }
.transparent { background-color: rgb(58 37 90 / 50%); }
.gradient { background: linear-gradient(to right, #3a255a, #55255a); }
Similar colors
#372354Stormy Night#48295bAcai#442266Fading Horizon#332266Dark Dreams#341758Fabric of Space#432e6fHer Highness#2e2364Indie Go#2a2551Pāua
Closest common color name: Midnight Blue.
Questions
- What color is #3A255A?
- #3A255A is a dark, desaturated violet, closest to the named color Stormy Night. It belongs to the purple family of colors.
- What is the RGB value of #3A255A?
- The RGB value is 58, 37, 90: 58 red, 37 green and 90 blue on a 0 to 255 scale.
- What is the complementary color of #3A255A?
- The complementary color is #455A25, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #3A255A?
- White text. Black text has a contrast ratio of 1.59:1 and white text 13.19:1. WCAG asks for at least 4.5:1 for normal text.