Dark Knight color: hex code #151931

#151931 rgb(21, 25, 49)
Shades of black

Dark Knight has the hex code #151931. It is a very dark, desaturated blue.

In the RGB color model it is made of 8.2% red, 9.8% green and 19.2% blue (21, 25, 49).

Its hue angle is 231°, with 40% saturation and 14% lightness. For print, the CMYK equivalent is 57% cyan, 49% magenta, 0% yellow and 81% black.

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

Dark Knight (#151931) color codes

HEX#151931
RGBrgb(21, 25, 49)
RGB percentrgb(8.2%, 9.8%, 19.2%)
HSLhsl(231, 40%, 14%)
HSV / HSBhsv(231, 57%, 19%)
CMYKcmyk(57%, 49%, 0%, 81%)
CIE LABlab(9.61, 6.39, -16.58)
CIE LCHlch(9.61, 17.76, 291.07)
CIE XYZxyz(1.211, 1.076, 3.049)
Decimal1382705
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with Dark Knight, 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 #151931RatioAAAAAAA large
Sample text1.22:1FailFailFail
Sample text17.28:1PassPassPass
#151931 as text onRatioAAAAAAA large
Sample text17.28:1PassPassPass
Sample text1.22: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 #151931 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #151931; }
.text { color: #151931; }
.border { border: 2px solid #151931; }
.transparent { background-color: rgb(21 25 49 / 50%); }
.gradient { background: linear-gradient(to right, #151931, #1f1531); }
Background
Text color
Border

Similar colors

Closest common color name: Oxford Blue.

See #151931 on its hex code page

Questions

What color is #151931?
#151931 is a very dark, desaturated blue known as Dark Knight. It belongs to the black family of colors.
What is the RGB value of Dark Knight?
The RGB value is 21, 25, 49: 21 red, 25 green and 49 blue on a 0 to 255 scale.
What is the complementary color of Dark Knight?
The complementary color is #312D15, found by rotating the hue 180° on the color wheel.
Is black or white text better on #151931?
White text. Black text has a contrast ratio of 1.22:1 and white text 17.28:1. WCAG asks for at least 4.5:1 for normal text.