#313540 color

#313540 rgb(49, 53, 64)
Shades of gray

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
RGBrgb(49, 53, 64)
RGB percentrgb(19.2%, 20.8%, 25.1%)
HSLhsl(224, 13%, 22%)
HSV / HSBhsv(224, 23%, 25%)
CMYKcmyk(23%, 17%, 0%, 75%)
CIE LABlab(22.19, 1.16, -7.43)
CIE LCHlch(22.19, 7.52, 278.9)
CIE XYZxyz(3.465, 3.569, 5.356)
Decimal3224896
Short hexNone (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 #313540RatioAAAAAAA large
Sample text1.71:1FailFailFail
Sample text12.25:1PassPassPass
#313540 as text onRatioAAAAAAA large
Sample text12.25:1PassPassPass
Sample text1.71:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.