#0C0C28 color
The hex color #0C0C28 is a very dark, moderate blue.
In the RGB color model it is made of 4.7% red, 4.7% green and 15.7% blue (12, 12, 40).
Its hue angle is 240°, with 54% saturation and 10% lightness. For print, the CMYK equivalent is 70% cyan, 70% magenta, 0% yellow and 84% black.
The closest named color is Mysterious Depths (#060929), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.11:1).
#0C0C28 color codes
| HEX | #0C0C28 | |
|---|---|---|
| RGB | rgb(12, 12, 40) | |
| RGB percent | rgb(4.7%, 4.7%, 15.7%) | |
| HSL | hsl(240, 54%, 10%) | |
| HSV / HSB | hsv(240, 70%, 16%) | |
| CMYK | cmyk(70%, 70%, 0%, 84%) | |
| CIE LAB | lab(4.46, 8.04, -18.07) | |
| CIE LCH | lch(4.46, 19.78, 293.98) | |
| CIE XYZ | xyz(0.666, 0.494, 2.067) | |
| Decimal | 789544 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C0C28, 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 #0C0C28 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.1:1 | Fail | Fail | Fail |
| Sample text | 19.11:1 | Pass | Pass | Pass |
| #0C0C28 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 #0C0C28 looks to people with the most common types of color vision deficiency.
#001129Protanopia
no red cones#000e27Deuteranopia
no green cones#021218Tritanopia
no blue cones#0f0f0fAchromatopsia
no color vision
CSS examples
.background { background-color: #0c0c28; }
.text { color: #0c0c28; }
.border { border: 2px solid #0c0c28; }
.transparent { background-color: rgb(12 12 40 / 50%); }
.gradient { background: linear-gradient(to right, #0c0c28, #1a0c28); }
Similar colors
#060929Mysterious Depths#050d25Void#151931Dark Knight#041330Squid’s Ink#03012dMidnight#111122Corbeau#071037Infinite Night#00022eIllicit Darkness
Closest common color name: Oxford Blue.
Questions
- What color is #0C0C28?
- #0C0C28 is a very dark, moderate blue, closest to the named color Mysterious Depths. It belongs to the black family of colors.
- What is the RGB value of #0C0C28?
- The RGB value is 12, 12, 40: 12 red, 12 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #0C0C28?
- The complementary color is #28280C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C0C28?
- 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.