#12172F color
The hex color #12172F is a very dark, desaturated blue.
In the RGB color model it is made of 7.1% red, 9% green and 18.4% blue (18, 23, 47).
Its hue angle is 230°, with 45% saturation and 13% lightness. For print, the CMYK equivalent is 62% cyan, 51% magenta, 0% yellow and 82% black.
The closest named color is Dark Knight (#151931), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.66:1).
#12172F color codes
| HEX | #12172F | |
|---|---|---|
| RGB | rgb(18, 23, 47) | |
| RGB percent | rgb(7.1%, 9%, 18.4%) | |
| HSL | hsl(230, 45%, 13%) | |
| HSV / HSB | hsv(230, 62%, 18%) | |
| CMYK | cmyk(62%, 51%, 0%, 82%) | |
| CIE LAB | lab(8.54, 6.25, -16.83) | |
| CIE LCH | lch(8.54, 17.96, 290.37) | |
| CIE XYZ | xyz(1.069, 0.947, 2.815) | |
| Decimal | 1185583 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #12172F, 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 #12172F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.19:1 | Fail | Fail | Fail |
| Sample text | 17.66:1 | Pass | Pass | Pass |
| #12172F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.66:1 | Pass | Pass | Pass |
| Sample text | 1.19: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 #12172F looks to people with the most common types of color vision deficiency.
#0d1a30Protanopia
no red cones#0a172eDeuteranopia
no green cones#061c20Tritanopia
no blue cones#191919Achromatopsia
no color vision
CSS examples
.background { background-color: #12172f; }
.text { color: #12172f; }
.border { border: 2px solid #12172f; }
.transparent { background-color: rgb(18 23 47 / 50%); }
.gradient { background: linear-gradient(to right, #12172f, #1b122f); }
Similar colors
#151931Dark Knight#161d3bNightwalker#161e34Sombre Night#041330Squid’s Ink#050d25Void#060929Mysterious Depths#111122Corbeau#1f2133Eclipse Elixir
Closest common color name: Oxford Blue.
Questions
- What color is #12172F?
- #12172F 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 #12172F?
- The RGB value is 18, 23, 47: 18 red, 23 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #12172F?
- The complementary color is #2F2A12, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #12172F?
- White text. Black text has a contrast ratio of 1.19:1 and white text 17.66:1. WCAG asks for at least 4.5:1 for normal text.