#3A5787 color
The hex color #3A5787 is a dark, desaturated azure.
In the RGB color model it is made of 22.7% red, 34.1% green and 52.9% blue (58, 87, 135).
Its hue angle is 217°, with 40% saturation and 38% lightness. For print, the CMYK equivalent is 57% cyan, 36% magenta, 0% yellow and 47% black.
The closest named color is Glimpse of Void (#335588), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 7.26:1).
#3A5787 color codes
| HEX | #3A5787 | |
|---|---|---|
| RGB | rgb(58, 87, 135) | |
| RGB percent | rgb(22.7%, 34.1%, 52.9%) | |
| HSL | hsl(217, 40%, 38%) | |
| HSV / HSB | hsv(217, 57%, 53%) | |
| CMYK | cmyk(57%, 36%, 0%, 47%) | |
| CIE LAB | lab(36.86, 4.38, -30.07) | |
| CIE LCH | lch(36.86, 30.39, 278.29) | |
| CIE XYZ | xyz(9.525, 9.464, 24.242) | |
| Decimal | 3823495 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #3A5787, 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 #3A5787 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.89:1 | Fail | Fail | Fail |
| Sample text | 7.26:1 | Pass | Pass | Pass |
| #3A5787 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.26:1 | Pass | Pass | Pass |
| Sample text | 2.89: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 #3A5787 looks to people with the most common types of color vision deficiency.
#445b89Protanopia
no red cones#3a5386Deuteranopia
no green cones#086268Tritanopia
no blue cones#575757Achromatopsia
no color vision
CSS examples
.background { background-color: #3a5787; }
.text { color: #3a5787; }
.border { border: 2px solid #3a5787; }
.transparent { background-color: rgb(58 87 135 / 50%); }
.gradient { background: linear-gradient(to right, #3a5787, #443a87); }
Similar colors
#335588Glimpse of Void#39527dSt. Tropaz#2d5284Galaxy Blue#445780Sailor#2d4f83Assassin#2e5090Nightly Activities#2d517cSlumber#234e86Night Mode
Closest common color name: Sapphire.
Questions
- What color is #3A5787?
- #3A5787 is a dark, desaturated azure, closest to the named color Glimpse of Void. It belongs to the blue family of colors.
- What is the RGB value of #3A5787?
- The RGB value is 58, 87, 135: 58 red, 87 green and 135 blue on a 0 to 255 scale.
- What is the complementary color of #3A5787?
- The complementary color is #876A3A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #3A5787?
- White text. Black text has a contrast ratio of 2.89:1 and white text 7.26:1. WCAG asks for at least 4.5:1 for normal text.