#0C2228 color
The hex color #0C2228 is a very dark, moderate cyan.
In the RGB color model it is made of 4.7% red, 13.3% green and 15.7% blue (12, 34, 40).
Its hue angle is 193°, with 54% saturation and 10% lightness. For print, the CMYK equivalent is 70% cyan, 15% magenta, 0% yellow and 84% black.
The closest named color is Sunken Ship (#10252A), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 16.47:1).
#0C2228 color codes
| HEX | #0C2228 | |
|---|---|---|
| RGB | rgb(12, 34, 40) | |
| RGB percent | rgb(4.7%, 13.3%, 15.7%) | |
| HSL | hsl(193, 54%, 10%) | |
| HSV / HSB | hsv(193, 70%, 16%) | |
| CMYK | cmyk(70%, 15%, 0%, 84%) | |
| CIE LAB | lab(11.79, -6.47, -6.67) | |
| CIE LCH | lch(11.79, 9.3, 225.86) | |
| CIE XYZ | xyz(1.106, 1.375, 2.214) | |
| Decimal | 795176 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C2228, 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 #0C2228 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.28:1 | Fail | Fail | Fail |
| Sample text | 16.47:1 | Pass | Pass | Pass |
| #0C2228 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.47:1 | Pass | Pass | Pass |
| Sample text | 1.28: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 #0C2228 looks to people with the most common types of color vision deficiency.
#1e2128Protanopia
no red cones#1a1e28Deuteranopia
no green cones#002424Tritanopia
no blue cones#1f1f1fAchromatopsia
no color vision
CSS examples
.background { background-color: #0c2228; }
.text { color: #0c2228; }
.border { border: 2px solid #0c2228; }
.transparent { background-color: rgb(12 34 40 / 50%); }
.gradient { background: linear-gradient(to right, #0c2228, #0c1428); }
Similar colors
#10252aSunken Ship#0f282fBlack Box#0e191cBlack Stallion#172b36Oceanic Noir#1e272cBlack Pearl#002233Midnight Dreams#162825Swamp Thing#133337Elite Teal
Closest common color name: Gunmetal.
Questions
- What color is #0C2228?
- #0C2228 is a very dark, moderate cyan, closest to the named color Sunken Ship. It belongs to the black family of colors.
- What is the RGB value of #0C2228?
- The RGB value is 12, 34, 40: 12 red, 34 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #0C2228?
- The complementary color is #28120C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C2228?
- White text. Black text has a contrast ratio of 1.28:1 and white text 16.47:1. WCAG asks for at least 4.5:1 for normal text.