Infinity color: hex code #222831
Infinity has the hex code #222831. It is a very dark, grayish azure.
In the RGB color model it is made of 13.3% red, 15.7% green and 19.2% blue (34, 40, 49).
Its hue angle is 216°, with 18% saturation and 16% lightness. For print, the CMYK equivalent is 31% cyan, 18% magenta, 0% yellow and 81% black.
White text is the more readable choice on this background (contrast 14.83:1).
Infinity (#222831) color codes
| HEX | #222831 | |
|---|---|---|
| RGB | rgb(34, 40, 49) | |
| RGB percent | rgb(13.3%, 15.7%, 19.2%) | |
| HSL | hsl(216, 18%, 16%) | |
| HSV / HSB | hsv(216, 31%, 19%) | |
| CMYK | cmyk(31%, 18%, 0%, 81%) | |
| CIE LAB | lab(15.9, -0.08, -6.74) | |
| CIE LCH | lch(15.9, 6.74, 269.28) | |
| CIE XYZ | xyz(1.973, 2.079, 3.203) | |
| Decimal | 2238513 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with Infinity, 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 #222831 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.42:1 | Fail | Fail | Fail |
| Sample text | 14.83:1 | Pass | Pass | Pass |
| #222831 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.83:1 | Pass | Pass | Pass |
| Sample text | 1.42: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 #222831 looks to people with the most common types of color vision deficiency.
#252831Protanopia
no red cones#232731Deuteranopia
no green cones#1e2a2bTritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #222831; }
.text { color: #222831; }
.border { border: 2px solid #222831; }
.transparent { background-color: rgb(34 40 49 / 50%); }
.gradient { background: linear-gradient(to right, #222831, #232231); }
Similar colors
#292b31Night Sky#1b2431Dark#242a2eCinder#29292fJaguar#28282dAnthracite#1e272cBlack Pearl#2b2c30Caviar#1e2433Moonless Mystery
Closest common color name: Gunmetal.
See #222831 on its hex code page
Questions
- What color is #222831?
- #222831 is a very dark, grayish azure known as Infinity. It belongs to the black family of colors.
- What is the RGB value of Infinity?
- The RGB value is 34, 40, 49: 34 red, 40 green and 49 blue on a 0 to 255 scale.
- What is the complementary color of Infinity?
- The complementary color is #312B22, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #222831?
- White text. Black text has a contrast ratio of 1.42:1 and white text 14.83:1. WCAG asks for at least 4.5:1 for normal text.