#0C1C2F color
The hex color #0C1C2F is a very dark, moderate azure.
In the RGB color model it is made of 4.7% red, 11% green and 18.4% blue (12, 28, 47).
Its hue angle is 213°, with 59% saturation and 12% lightness. For print, the CMYK equivalent is 74% cyan, 40% magenta, 0% yellow and 82% black.
The closest named color is Trapped Darkness (#0E1D32), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.17:1).
#0C1C2F color codes
| HEX | #0C1C2F | |
|---|---|---|
| RGB | rgb(12, 28, 47) | |
| RGB percent | rgb(4.7%, 11%, 18.4%) | |
| HSL | hsl(213, 59%, 12%) | |
| HSV / HSB | hsv(213, 74%, 18%) | |
| CMYK | cmyk(74%, 40%, 0%, 82%) | |
| CIE LAB | lab(9.91, 0.74, -14.7) | |
| CIE LCH | lch(9.91, 14.71, 272.88) | |
| CIE XYZ | xyz(1.08, 1.114, 2.847) | |
| Decimal | 793647 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1C2F, 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 #0C1C2F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.22:1 | Fail | Fail | Fail |
| Sample text | 17.17:1 | Pass | Pass | Pass |
| #0C1C2F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.17:1 | Pass | Pass | Pass |
| Sample text | 1.22: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 #0C1C2F looks to people with the most common types of color vision deficiency.
#141d30Protanopia
no red cones#0f1a2fDeuteranopia
no green cones#002023Tritanopia
no blue cones#1b1b1bAchromatopsia
no color vision
CSS examples
.background { background-color: #0c1c2f; }
.text { color: #0c1c2f; }
.border { border: 2px solid #0c1c2f; }
.transparent { background-color: rgb(12 28 47 / 50%); }
.gradient { background: linear-gradient(to right, #0c1c2f, #0e0c2f); }
Similar colors
#0e1d32Trapped Darkness#102030The Count’s Black#001b2eOxford by Night#011c39Naval Night#161e34Sombre Night#1b2431Dark#1e2433Moonless Mystery#001f3fMidnight Mirage
Closest common color name: Oxford Blue.
Questions
- What color is #0C1C2F?
- #0C1C2F 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 #0C1C2F?
- The RGB value is 12, 28, 47: 12 red, 28 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #0C1C2F?
- The complementary color is #2F1F0C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1C2F?
- White text. Black text has a contrast ratio of 1.22:1 and white text 17.17:1. WCAG asks for at least 4.5:1 for normal text.