Dark Knight color: hex code #151931
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 | |
|---|---|---|
| RGB | rgb(21, 25, 49) | |
| RGB percent | rgb(8.2%, 9.8%, 19.2%) | |
| HSL | hsl(231, 40%, 14%) | |
| HSV / HSB | hsv(231, 57%, 19%) | |
| CMYK | cmyk(57%, 49%, 0%, 81%) | |
| CIE LAB | lab(9.61, 6.39, -16.58) | |
| CIE LCH | lch(9.61, 17.76, 291.07) | |
| CIE XYZ | xyz(1.211, 1.076, 3.049) | |
| Decimal | 1382705 | |
| Short hex | None (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 #151931 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.22:1 | Fail | Fail | Fail |
| Sample text | 17.28:1 | Pass | Pass | Pass |
| #151931 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.28:1 | Pass | Pass | Pass |
| Sample text | 1.22:1 | Fail | Fail | Fail |
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.
#101c32Protanopia
no red cones#0d1a30Deuteranopia
no green cones#0a1e22Tritanopia
no blue cones#1b1b1bAchromatopsia
no color vision
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); }
Similar colors
#161d3bNightwalker#161e34Sombre Night#041330Squid’s Ink#1f2133Eclipse Elixir#050d25Void#111122Corbeau#060929Mysterious Depths#222233Black Velvet
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.