#242228 color
The hex color #242228 is a very dark, grayish violet.
In the RGB color model it is made of 14.1% red, 13.3% green and 15.7% blue (36, 34, 40).
Its hue angle is 260°, with 8% saturation and 15% lightness. For print, the CMYK equivalent is 10% cyan, 15% magenta, 0% yellow and 84% black.
The closest named color is Darth Vader (#27252A), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.74:1).
#242228 color codes
| HEX | #242228 | |
|---|---|---|
| RGB | rgb(36, 34, 40) | |
| RGB percent | rgb(14.1%, 13.3%, 15.7%) | |
| HSL | hsl(260, 8%, 15%) | |
| HSV / HSB | hsv(260, 15%, 16%) | |
| CMYK | cmyk(10%, 15%, 0%, 84%) | |
| CIE LAB | lab(13.66, 2.45, -3.67) | |
| CIE LCH | lch(13.66, 4.41, 303.72) | |
| CIE XYZ | xyz(1.683, 1.672, 2.241) | |
| Decimal | 2368040 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #242228, 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 #242228 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.33:1 | Fail | Fail | Fail |
| Sample text | 15.74:1 | Pass | Pass | Pass |
| #242228 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.74:1 | Pass | Pass | Pass |
| Sample text | 1.33: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 #242228 looks to people with the most common types of color vision deficiency.
#212328Protanopia
no red cones#212328Deuteranopia
no green cones#232324Tritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #242228; }
.text { color: #242228; }
.border { border: 2px solid #242228; }
.transparent { background-color: rgb(36 34 40 / 50%); }
.gradient { background: linear-gradient(to right, #242228, #272228); }
Similar colors
#27252aDarth Vader#252024Ink Black#28282dAnthracite#29292fJaguar#201b20Night Demons#1e1e21Inkwell Inception#202124Noble Black#211e1fUmbra
Closest common color name: Licorice.
Questions
- What color is #242228?
- #242228 is a very dark, grayish violet, closest to the named color Darth Vader. It belongs to the black family of colors.
- What is the RGB value of #242228?
- The RGB value is 36, 34, 40: 36 red, 34 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #242228?
- The complementary color is #262822, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #242228?
- White text. Black text has a contrast ratio of 1.33:1 and white text 15.74:1. WCAG asks for at least 4.5:1 for normal text.