#151531 color
The hex color #151531 is a very dark, desaturated blue.
In the RGB color model it is made of 8.2% red, 8.2% green and 19.2% blue (21, 21, 49).
Its hue angle is 240°, with 40% saturation and 14% lightness. For print, the CMYK equivalent is 57% cyan, 57% magenta, 0% yellow and 81% black.
The closest named color is Dark Knight (#151931), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.74:1).
#151531 color codes
| HEX | #151531 | |
|---|---|---|
| RGB | rgb(21, 21, 49) | |
| RGB percent | rgb(8.2%, 8.2%, 19.2%) | |
| HSL | hsl(240, 40%, 14%) | |
| HSV / HSB | hsv(240, 57%, 19%) | |
| CMYK | cmyk(57%, 57%, 0%, 81%) | |
| CIE LAB | lab(8.28, 9.5, -18.69) | |
| CIE LCH | lch(8.28, 20.96, 296.94) | |
| CIE XYZ | xyz(1.132, 0.917, 3.023) | |
| Decimal | 1381681 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #151531, 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 #151531 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.18:1 | Fail | Fail | Fail |
| Sample text | 17.74:1 | Pass | Pass | Pass |
| #151531 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.74:1 | Pass | Pass | Pass |
| Sample text | 1.18: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 #151531 looks to people with the most common types of color vision deficiency.
#091932Protanopia
no red cones#071730Deuteranopia
no green cones#0b1b20Tritanopia
no blue cones#181818Achromatopsia
no color vision
CSS examples
.background { background-color: #151531; }
.text { color: #151531; }
.border { border: 2px solid #151531; }
.transparent { background-color: rgb(21 21 49 / 50%); }
.gradient { background: linear-gradient(to right, #151531, #231531); }
Similar colors
#151931Dark Knight#161d3bNightwalker#060929Mysterious Depths#071037Infinite Night#222244Black Market#041330Squid’s Ink#1c0f33Midnight Monarch#050d25Void
Closest common color name: Oxford Blue.
Questions
- What color is #151531?
- #151531 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 #151531?
- The RGB value is 21, 21, 49: 21 red, 21 green and 49 blue on a 0 to 255 scale.
- What is the complementary color of #151531?
- The complementary color is #313115, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #151531?
- White text. Black text has a contrast ratio of 1.18:1 and white text 17.74:1. WCAG asks for at least 4.5:1 for normal text.