#0C2740 color
The hex color #0C2740 is a very dark, moderate azure.
In the RGB color model it is made of 4.7% red, 15.3% green and 25.1% blue (12, 39, 64).
Its hue angle is 209°, with 68% saturation and 15% lightness. For print, the CMYK equivalent is 81% cyan, 39% magenta, 0% yellow and 75% black.
The closest named color is Midnight Ocean (#0F2D4D), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.22:1).
#0C2740 color codes
| HEX | #0C2740 | |
|---|---|---|
| RGB | rgb(12, 39, 64) | |
| RGB percent | rgb(4.7%, 15.3%, 25.1%) | |
| HSL | hsl(209, 68%, 15%) | |
| HSV / HSB | hsv(209, 81%, 25%) | |
| CMYK | cmyk(81%, 39%, 0%, 75%) | |
| CIE LAB | lab(14.95, -0.07, -18.83) | |
| CIE LCH | lch(14.95, 18.83, 269.78) | |
| CIE XYZ | xyz(1.802, 1.899, 5.121) | |
| Decimal | 796480 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C2740, 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 #0C2740 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.38:1 | Fail | Fail | Fail |
| Sample text | 15.22:1 | Pass | Pass | Pass |
| #0C2740 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.22:1 | Pass | Pass | Pass |
| Sample text | 1.38: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 #0C2740 looks to people with the most common types of color vision deficiency.
#1c2841Protanopia
no red cones#142340Deuteranopia
no green cones#002d30Tritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #0c2740; }
.text { color: #0c2740; }
.border { border: 2px solid #0c2740; }
.transparent { background-color: rgb(12 39 64 / 50%); }
.gradient { background: linear-gradient(to right, #0c2740, #0c0d40); }
Similar colors
#0f2d4dMidnight Ocean#001f3fMidnight Mirage#0a3251Beyond the Stars#102030The Count’s Black#0e1d32Trapped Darkness#011c39Naval Night#003153Prussian Blue#1c2841Eternal Darkness
Questions
- What color is #0C2740?
- #0C2740 is a very dark, moderate azure, closest to the named color Midnight Ocean. It belongs to the blue family of colors.
- What is the RGB value of #0C2740?
- The RGB value is 12, 39, 64: 12 red, 39 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #0C2740?
- The complementary color is #40250C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C2740?
- White text. Black text has a contrast ratio of 1.38:1 and white text 15.22:1. WCAG asks for at least 4.5:1 for normal text.