#0C0C56 color
The hex color #0C0C56 is a very dark, moderate blue.
In the RGB color model it is made of 4.7% red, 4.7% green and 33.7% blue (12, 12, 86).
Its hue angle is 240°, with 76% saturation and 19% lightness. For print, the CMYK equivalent is 86% cyan, 86% magenta, 0% yellow and 66% black.
The closest named color is Space Colonisation (#150F5B), a difference of 1.2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.46:1).
#0C0C56 color codes
| HEX | #0C0C56 | |
|---|---|---|
| RGB | rgb(12, 12, 86) | |
| RGB percent | rgb(4.7%, 4.7%, 33.7%) | |
| HSL | hsl(240, 76%, 19%) | |
| HSV / HSB | hsv(240, 86%, 34%) | |
| CMYK | cmyk(86%, 86%, 0%, 66%) | |
| CIE LAB | lab(9.1, 28.99, -43.51) | |
| CIE LCH | lch(9.1, 52.28, 303.67) | |
| CIE XYZ | xyz(1.962, 1.013, 8.894) | |
| Decimal | 789590 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C0C56, 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 #0C0C56 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.2:1 | Fail | Fail | Fail |
| Sample text | 17.46:1 | Pass | Pass | Pass |
| #0C0C56 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.46:1 | Pass | Pass | Pass |
| Sample text | 1.2: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 #0C0C56 looks to people with the most common types of color vision deficiency.
#001d58Protanopia
no red cones#001655Deuteranopia
no green cones#002331Tritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
CSS examples
.background { background-color: #0c0c56; }
.text { color: #0c0c56; }
.border { border: 2px solid #0c0c56; }
.transparent { background-color: rgb(12 12 86 / 50%); }
.gradient { background: linear-gradient(to right, #0c0c56, #310c56); }
Similar colors
#150f5bSpace Colonisation#0a0555Ravenclaw#0f084bSilent Twilight#001155Interstellar Blue#111166Dying Storm Blue#000044Endless Galaxy#000b44Storm#110066The Vast of Night
Closest common color name: Midnight Blue.
Questions
- What color is #0C0C56?
- #0C0C56 is a very dark, moderate blue, closest to the named color Space Colonisation. It belongs to the black family of colors.
- What is the RGB value of #0C0C56?
- The RGB value is 12, 12, 86: 12 red, 12 green and 86 blue on a 0 to 255 scale.
- What is the complementary color of #0C0C56?
- The complementary color is #56560C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C0C56?
- White text. Black text has a contrast ratio of 1.2:1 and white text 17.46:1. WCAG asks for at least 4.5:1 for normal text.