#181522 color
The hex color #181522 is a very dark, grayish violet.
In the RGB color model it is made of 9.4% red, 8.2% green and 13.3% blue (24, 21, 34).
Its hue angle is 254°, with 24% saturation and 11% lightness. For print, the CMYK equivalent is 29% cyan, 38% magenta, 0% yellow and 87% black.
The closest named color is Corbeau (#111122), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.96:1).
#181522 color codes
| HEX | #181522 | |
|---|---|---|
| RGB | rgb(24, 21, 34) | |
| RGB percent | rgb(9.4%, 8.2%, 13.3%) | |
| HSL | hsl(254, 24%, 11%) | |
| HSV / HSB | hsv(254, 38%, 13%) | |
| CMYK | cmyk(29%, 38%, 0%, 87%) | |
| CIE LAB | lab(7.64, 5.17, -8.5) | |
| CIE LCH | lch(7.64, 9.95, 301.32) | |
| CIE XYZ | xyz(0.934, 0.846, 1.627) | |
| Decimal | 1578274 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181522, 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 #181522 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.17:1 | Fail | Fail | Fail |
| Sample text | 17.96:1 | Pass | Pass | Pass |
| #181522 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.96:1 | Pass | Pass | Pass |
| Sample text | 1.17: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 #181522 looks to people with the most common types of color vision deficiency.
#121723Protanopia
no red cones#121722Deuteranopia
no green cones#16171aTritanopia
no blue cones#171717Achromatopsia
no color vision
CSS examples
.background { background-color: #181522; }
.text { color: #181522; }
.border { border: 2px solid #181522; }
.transparent { background-color: rgb(24 21 34 / 50%); }
.gradient { background: linear-gradient(to right, #181522, #1e1522); }
Similar colors
#111122Corbeau#16141cBack in Black#1a161dViolet Void#060313Obsidian Shard#16161dEigengrau#222233Black Velvet#1f2133Eclipse Elixir#201b20Night Demons
Closest common color name: Midnight Black.
Questions
- What color is #181522?
- #181522 is a very dark, grayish violet, closest to the named color Corbeau. It belongs to the black family of colors.
- What is the RGB value of #181522?
- The RGB value is 24, 21, 34: 24 red, 21 green and 34 blue on a 0 to 255 scale.
- What is the complementary color of #181522?
- The complementary color is #1F2215, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181522?
- White text. Black text has a contrast ratio of 1.17:1 and white text 17.96:1. WCAG asks for at least 4.5:1 for normal text.