#313840 color

#313840 rgb(49, 56, 64)
Shades of gray

The hex color #313840 is a dark, grayish azure.

In the RGB color model it is made of 19.2% red, 22% green and 25.1% blue (49, 56, 64).

Its hue angle is 212°, with 13% saturation and 22% lightness. For print, the CMYK equivalent is 23% cyan, 13% magenta, 0% yellow and 75% black.

The closest named color is Do Not Disturb (#363B43), a difference of 1.5 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 11.86:1).

#313840 color codes

HEX#313840
RGBrgb(49, 56, 64)
RGB percentrgb(19.2%, 22%, 25.1%)
HSLhsl(212, 13%, 22%)
HSV / HSBhsv(212, 23%, 25%)
CMYKcmyk(23%, 13%, 0%, 75%)
CIE LABlab(23.17, -0.84, -5.95)
CIE LCHlch(23.17, 6.01, 261.92)
CIE XYZxyz(3.606, 3.851, 5.403)
Decimal3225664
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #313840, 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 #313840RatioAAAAAAA large
Sample text1.77:1FailFailFail
Sample text11.86:1PassPassPass
#313840 as text onRatioAAAAAAA large
Sample text11.86:1PassPassPass
Sample text1.77: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 #313840 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #313840; }
.text { color: #313840; }
.border { border: 2px solid #313840; }
.transparent { background-color: rgb(49 56 64 / 50%); }
.gradient { background: linear-gradient(to right, #313840, #313140); }
Background
Text color
Border

Similar colors

Questions

What color is #313840?
#313840 is a dark, grayish azure, closest to the named color Do Not Disturb. It belongs to the gray family of colors.
What is the RGB value of #313840?
The RGB value is 49, 56, 64: 49 red, 56 green and 64 blue on a 0 to 255 scale.
What is the complementary color of #313840?
The complementary color is #403931, found by rotating the hue 180° on the color wheel.
Is black or white text better on #313840?
White text. Black text has a contrast ratio of 1.77:1 and white text 11.86:1. WCAG asks for at least 4.5:1 for normal text.