#12004C color
The hex color #12004C is a very dark, vivid violet.
In the RGB color model it is made of 7.1% red, 0% green and 29.8% blue (18, 0, 76).
Its hue angle is 254°, with 100% saturation and 15% lightness. For print, the CMYK equivalent is 76% cyan, 100% magenta, 0% yellow and 70% black.
The closest named color is Ravenclaw (#0A0555), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 18.58:1).
#12004C color codes
| HEX | #12004C | |
|---|---|---|
| RGB | rgb(18, 0, 76) | |
| RGB percent | rgb(7.1%, 0%, 29.8%) | |
| HSL | hsl(254, 100%, 15%) | |
| HSV / HSB | hsv(254, 100%, 30%) | |
| CMYK | cmyk(76%, 100%, 0%, 70%) | |
| CIE LAB | lab(5.87, 32.61, -41.95) | |
| CIE LCH | lch(5.87, 53.13, 307.86) | |
| CIE XYZ | xyz(1.554, 0.65, 6.88) | |
| Decimal | 1179724 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #12004C, 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 #12004C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.13:1 | Fail | Fail | Fail |
| Sample text | 18.58:1 | Pass | Pass | Pass |
| #12004C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.58:1 | Pass | Pass | Pass |
| Sample text | 1.13: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 #12004C looks to people with the most common types of color vision deficiency.
#00164eProtanopia
no red cones#00104bDeuteranopia
no green cones#001a29Tritanopia
no blue cones#131313Achromatopsia
no color vision
CSS examples
.background { background-color: #12004c; }
.text { color: #12004c; }
.border { border: 2px solid #12004c; }
.transparent { background-color: rgb(18 0 76 / 50%); }
.gradient { background: linear-gradient(to right, #12004c, #38004c); }
Similar colors
#0a0555Ravenclaw#0f084bSilent Twilight#000044Endless Galaxy#220044Your Darkness#150f5bSpace Colonisation#110066The Vast of Night#220066Blackmail#000066Alone in the Dark
Closest common color name: Midnight Blue.
Questions
- What color is #12004C?
- #12004C is a very dark, vivid violet, closest to the named color Ravenclaw. It belongs to the black family of colors.
- What is the RGB value of #12004C?
- The RGB value is 18, 0, 76: 18 red, 0 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #12004C?
- The complementary color is #3A4C00, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #12004C?
- White text. Black text has a contrast ratio of 1.13:1 and white text 18.58:1. WCAG asks for at least 4.5:1 for normal text.