#12042C color
The hex color #12042C is a very dark, vivid violet.
In the RGB color model it is made of 7.1% red, 1.6% green and 17.3% blue (18, 4, 44).
Its hue angle is 261°, with 83% saturation and 9% lightness. For print, the CMYK equivalent is 59% cyan, 91% magenta, 0% yellow and 83% black.
The closest named color is Midnight Monarch (#1C0F33), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 19.45:1).
#12042C color codes
| HEX | #12042C | |
|---|---|---|
| RGB | rgb(18, 4, 44) | |
| RGB percent | rgb(7.1%, 1.6%, 17.3%) | |
| HSL | hsl(261, 83%, 9%) | |
| HSV / HSB | hsv(261, 91%, 17%) | |
| CMYK | cmyk(59%, 91%, 0%, 83%) | |
| CIE LAB | lab(3.59, 15.15, -22.46) | |
| CIE LCH | lch(3.59, 27.09, 304) | |
| CIE XYZ | xyz(0.747, 0.397, 2.42) | |
| Decimal | 1180716 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #12042C, 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 #12042C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.08:1 | Fail | Fail | Fail |
| Sample text | 19.45:1 | Pass | Pass | Pass |
| #12042C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.45:1 | Pass | Pass | Pass |
| Sample text | 1.08: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 #12042C looks to people with the most common types of color vision deficiency.
#000d2dProtanopia
no red cones#000c2bDeuteranopia
no green cones#0a0e17Tritanopia
no blue cones#0d0d0dAchromatopsia
no color vision
CSS examples
.background { background-color: #12042c; }
.text { color: #12042c; }
.border { border: 2px solid #12042c; }
.transparent { background-color: rgb(18 4 44 / 50%); }
.gradient { background: linear-gradient(to right, #12042c, #26042c); }
Similar colors
#1c0f33Midnight Monarch#160435Quiet Abyss#03012dMidnight#071037Infinite Night#00022eIllicit Darkness#000435Oblivion#060929Mysterious Depths#111144Deadly Depths
Closest common color name: Dark Purple.
Questions
- What color is #12042C?
- #12042C 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 #12042C?
- The RGB value is 18, 4, 44: 18 red, 4 green and 44 blue on a 0 to 255 scale.
- What is the complementary color of #12042C?
- The complementary color is #1E2C04, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #12042C?
- White text. Black text has a contrast ratio of 1.08:1 and white text 19.45:1. WCAG asks for at least 4.5:1 for normal text.