#1B042B color
The hex color #1B042B is a very dark, vivid violet.
In the RGB color model it is made of 10.6% red, 1.6% green and 16.9% blue (27, 4, 43).
Its hue angle is 275°, with 83% saturation and 9% lightness. For print, the CMYK equivalent is 37% cyan, 91% magenta, 0% yellow and 83% black.
The closest named color is Midnight Monarch (#1C0F33), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.11:1).
#1B042B color codes
| HEX | #1B042B | |
|---|---|---|
| RGB | rgb(27, 4, 43) | |
| RGB percent | rgb(10.6%, 1.6%, 16.9%) | |
| HSL | hsl(275, 83%, 9%) | |
| HSV / HSB | hsv(275, 91%, 17%) | |
| CMYK | cmyk(37%, 91%, 0%, 83%) | |
| CIE LAB | lab(4.46, 18.78, -20.25) | |
| CIE LCH | lch(4.46, 27.62, 312.85) | |
| CIE XYZ | xyz(0.931, 0.494, 2.331) | |
| Decimal | 1770539 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1B042B, 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 #1B042B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.1:1 | Fail | Fail | Fail |
| Sample text | 19.11:1 | Pass | Pass | Pass |
| #1B042B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.11:1 | Pass | Pass | Pass |
| Sample text | 1.1: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 #1B042B looks to people with the most common types of color vision deficiency.
#000f2cProtanopia
no red cones#00102aDeuteranopia
no green cones#180c16Tritanopia
no blue cones#0f0f0fAchromatopsia
no color vision
CSS examples
.background { background-color: #1b042b; }
.text { color: #1b042b; }
.border { border: 2px solid #1b042b; }
.transparent { background-color: rgb(27 4 43 / 50%); }
.gradient { background: linear-gradient(to right, #1b042b, #2b0428); }
Similar colors
#1c0f33Midnight Monarch#160435Quiet Abyss#220033Coal Mine#220022Black Sabbath#2b0f2eDark Prom Queen#301934Dark Purple#03012dMidnight#111144Deadly Depths
Questions
- What color is #1B042B?
- #1B042B is a very dark, vivid violet, closest to the named color Midnight Monarch. It belongs to the black family of colors.
- What is the RGB value of #1B042B?
- The RGB value is 27, 4, 43: 27 red, 4 green and 43 blue on a 0 to 255 scale.
- What is the complementary color of #1B042B?
- The complementary color is #142B04, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1B042B?
- White text. Black text has a contrast ratio of 1.1:1 and white text 19.11:1. WCAG asks for at least 4.5:1 for normal text.