#313948 color
The hex color #313948 is a dark, grayish azure.
In the RGB color model it is made of 19.2% red, 22.4% green and 28.2% blue (49, 57, 72).
Its hue angle is 219°, with 19% saturation and 24% lightness. For print, the CMYK equivalent is 32% cyan, 21% magenta, 0% yellow and 72% black.
The closest named color is Total Eclipse (#303543), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.61:1).
#313948 color codes
| HEX | #313948 | |
|---|---|---|
| RGB | rgb(49, 57, 72) | |
| RGB percent | rgb(19.2%, 22.4%, 28.2%) | |
| HSL | hsl(219, 19%, 24%) | |
| HSV / HSB | hsv(219, 32%, 28%) | |
| CMYK | cmyk(32%, 21%, 0%, 72%) | |
| CIE LAB | lab(23.83, 0.78, -10.31) | |
| CIE LCH | lch(23.83, 10.34, 274.32) | |
| CIE XYZ | xyz(3.899, 4.047, 6.705) | |
| Decimal | 3225928 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313948, 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 #313948 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.81:1 | Fail | Fail | Fail |
| Sample text | 11.61:1 | Pass | Pass | Pass |
| #313948 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.61:1 | Pass | Pass | Pass |
| Sample text | 1.81: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 #313948 looks to people with the most common types of color vision deficiency.
#343a49Protanopia
no red cones#323848Deuteranopia
no green cones#2b3c3eTritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #313948; }
.text { color: #313948; }
.border { border: 2px solid #313948; }
.transparent { background-color: rgb(49 57 72 / 50%); }
.gradient { background: linear-gradient(to right, #313948, #353148); }
Similar colors
#303543Total Eclipse#353f51Dark & Stormy#393f4bInkblot#3c4151Lava Stone#363b43Do Not Disturb#3f4250Madonna#3f4551Dark Crypt#314159Pi
Closest common color name: Charcoal.
Questions
- What color is #313948?
- #313948 is a dark, grayish azure, closest to the named color Total Eclipse. It belongs to the gray family of colors.
- What is the RGB value of #313948?
- The RGB value is 49, 57, 72: 49 red, 57 green and 72 blue on a 0 to 255 scale.
- What is the complementary color of #313948?
- The complementary color is #484031, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313948?
- White text. Black text has a contrast ratio of 1.81:1 and white text 11.61:1. WCAG asks for at least 4.5:1 for normal text.