#281138 color
The hex color #281138 is a very dark, moderate violet.
In the RGB color model it is made of 15.7% red, 6.7% green and 22% blue (40, 17, 56).
Its hue angle is 275°, with 53% saturation and 14% lightness. For print, the CMYK equivalent is 29% cyan, 70% magenta, 0% yellow and 78% black.
The closest named color is Midnight Monarch (#1C0F33), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.11:1).
#281138 color codes
| HEX | #281138 | |
|---|---|---|
| RGB | rgb(40, 17, 56) | |
| RGB percent | rgb(15.7%, 6.7%, 22%) | |
| HSL | hsl(275, 53%, 14%) | |
| HSV / HSB | hsv(275, 70%, 22%) | |
| CMYK | cmyk(29%, 70%, 0%, 78%) | |
| CIE LAB | lab(10.09, 20.56, -20.75) | |
| CIE LCH | lch(10.09, 29.21, 314.73) | |
| CIE XYZ | xyz(1.789, 1.138, 3.866) | |
| Decimal | 2625848 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #281138, 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 #281138 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.23:1 | Fail | Fail | Fail |
| Sample text | 17.11:1 | Pass | Pass | Pass |
| #281138 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.11:1 | Pass | Pass | Pass |
| Sample text | 1.23: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 #281138 looks to people with the most common types of color vision deficiency.
#031b39Protanopia
no red cones#0c1c37Deuteranopia
no green cones#261822Tritanopia
no blue cones#1c1c1cAchromatopsia
no color vision
CSS examples
.background { background-color: #281138; }
.text { color: #281138; }
.border { border: 2px solid #281138; }
.transparent { background-color: rgb(40 17 56 / 50%); }
.gradient { background: linear-gradient(to right, #281138, #381135); }
Similar colors
#1c0f33Midnight Monarch#2b0f2eDark Prom Queen#220033Coal Mine#3b193fCreatures of the Night#301934Dark Purple#160435Quiet Abyss#220022Black Sabbath#2a2243Midnight Velvet
Questions
- What color is #281138?
- #281138 is a very dark, moderate violet, closest to the named color Midnight Monarch. It belongs to the black family of colors.
- What is the RGB value of #281138?
- The RGB value is 40, 17, 56: 40 red, 17 green and 56 blue on a 0 to 255 scale.
- What is the complementary color of #281138?
- The complementary color is #213811, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #281138?
- White text. Black text has a contrast ratio of 1.23:1 and white text 17.11:1. WCAG asks for at least 4.5:1 for normal text.