#122228 color
The hex color #122228 is a very dark, desaturated azure.
In the RGB color model it is made of 7.1% red, 13.3% green and 15.7% blue (18, 34, 40).
Its hue angle is 196°, with 38% saturation and 11% lightness. For print, the CMYK equivalent is 55% cyan, 15% magenta, 0% yellow and 84% black.
The closest named color is Sunken Ship (#10252A), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.34:1).
#122228 color codes
| HEX | #122228 | |
|---|---|---|
| RGB | rgb(18, 34, 40) | |
| RGB percent | rgb(7.1%, 13.3%, 15.7%) | |
| HSL | hsl(196, 38%, 11%) | |
| HSV / HSB | hsv(196, 55%, 16%) | |
| CMYK | cmyk(55%, 15%, 0%, 84%) | |
| CIE LAB | lab(12.13, -4.68, -6.13) | |
| CIE LCH | lch(12.13, 7.71, 232.67) | |
| CIE XYZ | xyz(1.204, 1.426, 2.219) | |
| Decimal | 1188392 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #122228, 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 #122228 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.29:1 | Fail | Fail | Fail |
| Sample text | 16.34:1 | Pass | Pass | Pass |
| #122228 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.34:1 | Pass | Pass | Pass |
| Sample text | 1.29: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 #122228 looks to people with the most common types of color vision deficiency.
#1f2128Protanopia
no red cones#1b1f28Deuteranopia
no green cones#082424Tritanopia
no blue cones#202020Achromatopsia
no color vision
CSS examples
.background { background-color: #122228; }
.text { color: #122228; }
.border { border: 2px solid #122228; }
.transparent { background-color: rgb(18 34 40 / 50%); }
.gradient { background: linear-gradient(to right, #122228, #121728); }
Similar colors
#10252aSunken Ship#0f282fBlack Box#1e272cBlack Pearl#0e191cBlack Stallion#172b36Oceanic Noir#242a2eCinder#002233Midnight Dreams#293135Nightmare Fuel
Closest common color name: Gunmetal.
Questions
- What color is #122228?
- #122228 is a very dark, desaturated azure, closest to the named color Sunken Ship. It belongs to the black family of colors.
- What is the RGB value of #122228?
- The RGB value is 18, 34, 40: 18 red, 34 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #122228?
- The complementary color is #281812, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #122228?
- White text. Black text has a contrast ratio of 1.29:1 and white text 16.34:1. WCAG asks for at least 4.5:1 for normal text.