#281228 color
The hex color #281228 is a very dark, desaturated magenta.
In the RGB color model it is made of 15.7% red, 7.1% green and 15.7% blue (40, 18, 40).
Its hue angle is 300°, with 38% saturation and 11% lightness. For print, the CMYK equivalent is 0% cyan, 55% magenta, 0% yellow and 84% black.
The closest named color is Dark Purple (#301934), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.39:1).
#281228 color codes
| HEX | #281228 | |
|---|---|---|
| RGB | rgb(40, 18, 40) | |
| RGB percent | rgb(15.7%, 7.1%, 15.7%) | |
| HSL | hsl(300, 38%, 11%) | |
| HSV / HSB | hsv(300, 55%, 16%) | |
| CMYK | cmyk(0%, 55%, 0%, 84%) | |
| CIE LAB | lab(9.3, 15.66, -10.27) | |
| CIE LCH | lch(9.3, 18.73, 326.74) | |
| CIE XYZ | xyz(1.474, 1.037, 2.13) | |
| Decimal | 2626088 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #281228, 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 #281228 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.21:1 | Fail | Fail | Fail |
| Sample text | 17.39:1 | Pass | Pass | Pass |
| #281228 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.39:1 | Pass | Pass | Pass |
| Sample text | 1.21: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 #281228 looks to people with the most common types of color vision deficiency.
#101829Protanopia
no red cones#161b27Deuteranopia
no green cones#29141bTritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
CSS examples
.background { background-color: #281228; }
.text { color: #281228; }
.border { border: 2px solid #281228; }
.transparent { background-color: rgb(40 18 40 / 50%); }
.gradient { background: linear-gradient(to right, #281228, #28121d); }
Similar colors
#301934Dark Purple#2b0f2eDark Prom Queen#1d0d1dShot in the Dark#220022Black Sabbath#391531Nightly Voyager#2c1620Black Cherry#220011Belladonna#3b193fCreatures of the Night
Questions
- What color is #281228?
- #281228 is a very dark, desaturated magenta, closest to the named color Dark Purple. It belongs to the black family of colors.
- What is the RGB value of #281228?
- The RGB value is 40, 18, 40: 40 red, 18 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #281228?
- The complementary color is #122812, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #281228?
- White text. Black text has a contrast ratio of 1.21:1 and white text 17.39:1. WCAG asks for at least 4.5:1 for normal text.