#1F2831 color

#1F2831 rgb(31, 40, 49)
Shades of black

The hex color #1F2831 is a very dark, grayish azure.

In the RGB color model it is made of 12.2% red, 15.7% green and 19.2% blue (31, 40, 49).

Its hue angle is 210°, with 23% saturation and 16% lightness. For print, the CMYK equivalent is 37% cyan, 18% magenta, 0% yellow and 81% black.

The closest named color is Infinity (#222831), a difference of 1.6 ΔE, which is barely visible.

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

#1F2831 color codes

HEX#1F2831
RGBrgb(31, 40, 49)
RGB percentrgb(12.2%, 15.7%, 19.2%)
HSLhsl(210, 23%, 16%)
HSV / HSBhsv(210, 37%, 19%)
CMYKcmyk(37%, 18%, 0%, 81%)
CIE LABlab(15.65, -1.23, -7.14)
CIE LCHlch(15.65, 7.25, 260.2)
CIE XYZxyz(1.878, 2.031, 3.198)
Decimal2041905
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #1F2831, 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 #1F2831RatioAAAAAAA large
Sample text1.41:1FailFailFail
Sample text14.93:1PassPassPass
#1F2831 as text onRatioAAAAAAA large
Sample text14.93:1PassPassPass
Sample text1.41: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 #1F2831 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #1f2831; }
.text { color: #1f2831; }
.border { border: 2px solid #1f2831; }
.transparent { background-color: rgb(31 40 49 / 50%); }
.gradient { background: linear-gradient(to right, #1f2831, #1f1f31); }
Background
Text color
Border

Similar colors

Closest common color name: Gunmetal.

Questions

What color is #1F2831?
#1F2831 is a very dark, grayish azure, closest to the named color Infinity. It belongs to the black family of colors.
What is the RGB value of #1F2831?
The RGB value is 31, 40, 49: 31 red, 40 green and 49 blue on a 0 to 255 scale.
What is the complementary color of #1F2831?
The complementary color is #31281F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1F2831?
White text. Black text has a contrast ratio of 1.41:1 and white text 14.93:1. WCAG asks for at least 4.5:1 for normal text.