#313540 color
The hex color #313540 is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20.8% green and 25.1% blue (49, 53, 64).
Its hue angle is 224°, with 13% saturation and 22% lightness. For print, the CMYK equivalent is 23% cyan, 17% magenta, 0% yellow and 75% black.
The closest named color is Total Eclipse (#303543), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.25:1).
#313540 color codes
| HEX | #313540 | |
|---|---|---|
| RGB | rgb(49, 53, 64) | |
| RGB percent | rgb(19.2%, 20.8%, 25.1%) | |
| HSL | hsl(224, 13%, 22%) | |
| HSV / HSB | hsv(224, 23%, 25%) | |
| CMYK | cmyk(23%, 17%, 0%, 75%) | |
| CIE LAB | lab(22.19, 1.16, -7.43) | |
| CIE LCH | lch(22.19, 7.52, 278.9) | |
| CIE XYZ | xyz(3.465, 3.569, 5.356) | |
| Decimal | 3224896 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313540, 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 #313540 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.71:1 | Fail | Fail | Fail |
| Sample text | 12.25:1 | Pass | Pass | Pass |
| #313540 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.25:1 | Pass | Pass | Pass |
| Sample text | 1.71: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 #313540 looks to people with the most common types of color vision deficiency.
#323641Protanopia
no red cones#313540Deuteranopia
no green cones#2d3739Tritanopia
no blue cones#353535Achromatopsia
no color vision
CSS examples
.background { background-color: #313540; }
.text { color: #313540; }
.border { border: 2px solid #313540; }
.transparent { background-color: rgb(49 53 64 / 50%); }
.gradient { background: linear-gradient(to right, #313540, #353140); }
Similar colors
#303543Total Eclipse#363b43Do Not Disturb#35343fWitches Cauldron#38393fAfter Midnight#393f4bInkblot#37393eArtist’s Charcoal#36383cVulcan#3b3c41In the Dark
Closest common color name: Gunmetal.
Questions
- What color is #313540?
- #313540 is a dark, grayish blue, closest to the named color Total Eclipse. It belongs to the gray family of colors.
- What is the RGB value of #313540?
- The RGB value is 49, 53, 64: 49 red, 53 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #313540?
- The complementary color is #403C31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313540?
- White text. Black text has a contrast ratio of 1.71:1 and white text 12.25:1. WCAG asks for at least 4.5:1 for normal text.