#12062C color
The hex color #12062C is a very dark, moderate violet.
In the RGB color model it is made of 7.1% red, 2.4% green and 17.3% blue (18, 6, 44).
Its hue angle is 259°, with 76% saturation and 10% lightness. For print, the CMYK equivalent is 59% cyan, 86% 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.3:1).
#12062C color codes
| HEX | #12062C | |
|---|---|---|
| RGB | rgb(18, 6, 44) | |
| RGB percent | rgb(7.1%, 2.4%, 17.3%) | |
| HSL | hsl(259, 76%, 10%) | |
| HSV / HSB | hsv(259, 86%, 17%) | |
| CMYK | cmyk(59%, 86%, 0%, 83%) | |
| CIE LAB | lab(3.98, 14.35, -21.84) | |
| CIE LCH | lch(3.98, 26.13, 303.31) | |
| CIE XYZ | xyz(0.769, 0.441, 2.427) | |
| Decimal | 1181228 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #12062C, 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 #12062C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.09:1 | Fail | Fail | Fail |
| Sample text | 19.3:1 | Pass | Pass | Pass |
| #12062C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.3:1 | Pass | Pass | Pass |
| Sample text | 1.09: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 #12062C looks to people with the most common types of color vision deficiency.
#000f2dProtanopia
no red cones#000d2bDeuteranopia
no green cones#0a0f18Tritanopia
no blue cones#0e0e0eAchromatopsia
no color vision
CSS examples
.background { background-color: #12062c; }
.text { color: #12062c; }
.border { border: 2px solid #12062c; }
.transparent { background-color: rgb(18 6 44 / 50%); }
.gradient { background: linear-gradient(to right, #12062c, #25062c); }
Similar colors
#1c0f33Midnight Monarch#03012dMidnight#160435Quiet Abyss#071037Infinite Night#00022eIllicit Darkness#060929Mysterious Depths#000435Oblivion#111144Deadly Depths
Closest common color name: Dark Purple.
Questions
- What color is #12062C?
- #12062C 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 #12062C?
- The RGB value is 18, 6, 44: 18 red, 6 green and 44 blue on a 0 to 255 scale.
- What is the complementary color of #12062C?
- The complementary color is #202C06, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #12062C?
- White text. Black text has a contrast ratio of 1.09:1 and white text 19.3:1. WCAG asks for at least 4.5:1 for normal text.