#0C1526 color
The hex color #0C1526 is a very dark, moderate azure.
In the RGB color model it is made of 4.7% red, 8.2% green and 14.9% blue (12, 21, 38).
Its hue angle is 219°, with 52% saturation and 10% lightness. For print, the CMYK equivalent is 68% cyan, 45% magenta, 0% yellow and 85% black.
The closest named color is Trapped Darkness (#0E1D32), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 18.25:1).
#0C1526 color codes
| HEX | #0C1526 | |
|---|---|---|
| RGB | rgb(12, 21, 38) | |
| RGB percent | rgb(4.7%, 8.2%, 14.9%) | |
| HSL | hsl(219, 52%, 10%) | |
| HSV / HSB | hsv(219, 68%, 15%) | |
| CMYK | cmyk(68%, 45%, 0%, 85%) | |
| CIE LAB | lab(6.81, 2.15, -12.89) | |
| CIE LCH | lch(6.81, 13.07, 279.47) | |
| CIE XYZ | xyz(0.77, 0.754, 1.938) | |
| Decimal | 791846 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1526, 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 #0C1526 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.15:1 | Fail | Fail | Fail |
| Sample text | 18.25:1 | Pass | Pass | Pass |
| #0C1526 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.25:1 | Pass | Pass | Pass |
| Sample text | 1.15: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 #0C1526 looks to people with the most common types of color vision deficiency.
#0e1627Protanopia
no red cones#0b1426Deuteranopia
no green cones#02191bTritanopia
no blue cones#151515Achromatopsia
no color vision
CSS examples
.background { background-color: #0c1526; }
.text { color: #0c1526; }
.border { border: 2px solid #0c1526; }
.transparent { background-color: rgb(12 21 38 / 50%); }
.gradient { background: linear-gradient(to right, #0c1526, #100c26); }
Similar colors
#0e1d32Trapped Darkness#050d25Void#111122Corbeau#161e34Sombre Night#102030The Count’s Black#0c121bMidnight Edition#1e2433Moonless Mystery#151931Dark Knight
Closest common color name: Rich Black.
Questions
- What color is #0C1526?
- #0C1526 is a very dark, moderate azure, closest to the named color Trapped Darkness. It belongs to the black family of colors.
- What is the RGB value of #0C1526?
- The RGB value is 12, 21, 38: 12 red, 21 green and 38 blue on a 0 to 255 scale.
- What is the complementary color of #0C1526?
- The complementary color is #261D0C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1526?
- White text. Black text has a contrast ratio of 1.15:1 and white text 18.25:1. WCAG asks for at least 4.5:1 for normal text.