#170402 color
The hex color #170402 is a very dark, vivid red.
In the RGB color model it is made of 9% red, 1.6% green and 0.8% blue (23, 4, 2).
Its hue angle is 6°, with 84% saturation and 5% lightness. For print, the CMYK equivalent is 0% cyan, 83% magenta, 91% yellow and 91% black.
The closest named color is Dark Matter (#110101), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.91:1).
#170402 color codes
| HEX | #170402 | |
|---|---|---|
| RGB | rgb(23, 4, 2) | |
| RGB percent | rgb(9%, 1.6%, 0.8%) | |
| HSL | hsl(6, 84%, 5%) | |
| HSV / HSB | hsv(6, 91%, 9%) | |
| CMYK | cmyk(0%, 83%, 91%, 91%) | |
| CIE LAB | lab(2.47, 6.06, 2.99) | |
| CIE LCH | lch(2.47, 6.76, 26.27) | |
| CIE XYZ | xyz(0.408, 0.273, 0.089) | |
| Decimal | 1508354 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #170402, 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 #170402 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.05:1 | Fail | Fail | Fail |
| Sample text | 19.91:1 | Pass | Pass | Pass |
| #170402 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.91:1 | Pass | Pass | Pass |
| Sample text | 1.05: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 #170402 looks to people with the most common types of color vision deficiency.
#080702Protanopia
no red cones#0d0b02Deuteranopia
no green cones#1a0204Tritanopia
no blue cones#090909Achromatopsia
no color vision
CSS examples
.background { background-color: #170402; }
.text { color: #170402; }
.border { border: 2px solid #170402; }
.transparent { background-color: rgb(23 4 2 / 50%); }
.gradient { background: linear-gradient(to right, #170402, #170f02); }
Similar colors
#110101Dark Matter#1a1110Scandinavian Liquorice#1b1212Licorice#1d0200Dwarf Fortress#221111Italian Roast#130a06Asphalt#1f1518Bats Cloak#150811Noir Fiction
Questions
- What color is #170402?
- #170402 is a very dark, vivid red, closest to the named color Dark Matter. It belongs to the black family of colors.
- What is the RGB value of #170402?
- The RGB value is 23, 4, 2: 23 red, 4 green and 2 blue on a 0 to 255 scale.
- What is the complementary color of #170402?
- The complementary color is #021517, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #170402?
- White text. Black text has a contrast ratio of 1.05:1 and white text 19.91:1. WCAG asks for at least 4.5:1 for normal text.