#1A172E color

#1A172E rgb(26, 23, 46)
Shades of black

The hex color #1A172E is a very dark, desaturated blue.

In the RGB color model it is made of 10.2% red, 9% green and 18% blue (26, 23, 46).

Its hue angle is 248°, with 33% saturation and 14% lightness. For print, the CMYK equivalent is 43% cyan, 50% magenta, 0% yellow and 82% black.

The closest named color is Dark Knight (#151931), a difference of 2.9 ΔE, a small difference.

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

#1A172E color codes

HEX#1A172E
RGBrgb(26, 23, 46)
RGB percentrgb(10.2%, 9%, 18%)
HSLhsl(248, 33%, 14%)
HSV / HSBhsv(248, 50%, 18%)
CMYKcmyk(43%, 50%, 0%, 82%)
CIE LABlab(9.24, 8.47, -14.94)
CIE LCHlch(9.24, 17.18, 299.54)
CIE XYZxyz(1.225, 1.03, 2.718)
Decimal1709870
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

.background { background-color: #1a172e; }
.text { color: #1a172e; }
.border { border: 2px solid #1a172e; }
.transparent { background-color: rgb(26 23 46 / 50%); }
.gradient { background: linear-gradient(to right, #1a172e, #26172e); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

Questions

What color is #1A172E?
#1A172E is a very dark, desaturated blue, closest to the named color Dark Knight. It belongs to the black family of colors.
What is the RGB value of #1A172E?
The RGB value is 26, 23, 46: 26 red, 23 green and 46 blue on a 0 to 255 scale.
What is the complementary color of #1A172E?
The complementary color is #2B2E17, found by rotating the hue 180° on the color wheel.
Is black or white text better on #1A172E?
White text. Black text has a contrast ratio of 1.21:1 and white text 17.41:1. WCAG asks for at least 4.5:1 for normal text.