#0C0F27 color
The hex color #0C0F27 is a very dark, moderate blue.
In the RGB color model it is made of 4.7% red, 5.9% green and 15.3% blue (12, 15, 39).
Its hue angle is 233°, with 53% saturation and 10% lightness. For print, the CMYK equivalent is 69% cyan, 62% magenta, 0% yellow and 85% black.
The closest named color is Void (#050D25), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 18.86:1).
#0C0F27 color codes
| HEX | #0C0F27 | |
|---|---|---|
| RGB | rgb(12, 15, 39) | |
| RGB percent | rgb(4.7%, 5.9%, 15.3%) | |
| HSL | hsl(233, 53%, 10%) | |
| HSV / HSB | hsv(233, 69%, 15%) | |
| CMYK | cmyk(69%, 62%, 0%, 85%) | |
| CIE LAB | lab(5.11, 6.16, -16.3) | |
| CIE LCH | lch(5.11, 17.42, 290.7) | |
| CIE XYZ | xyz(0.689, 0.566, 1.992) | |
| Decimal | 790311 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C0F27, 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 #0C0F27 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.11:1 | Fail | Fail | Fail |
| Sample text | 18.86:1 | Pass | Pass | Pass |
| #0C0F27 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.86:1 | Pass | Pass | Pass |
| Sample text | 1.11: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 #0C0F27 looks to people with the most common types of color vision deficiency.
#051228Protanopia
no red cones#031026Deuteranopia
no green cones#021419Tritanopia
no blue cones#111111Achromatopsia
no color vision
CSS examples
.background { background-color: #0c0f27; }
.text { color: #0c0f27; }
.border { border: 2px solid #0c0f27; }
.transparent { background-color: rgb(12 15 39 / 50%); }
.gradient { background: linear-gradient(to right, #0c0f27, #170c27); }
Similar colors
#050d25Void#060929Mysterious Depths#151931Dark Knight#111122Corbeau#041330Squid’s Ink#161e34Sombre Night#161d3bNightwalker#071037Infinite Night
Closest common color name: Oxford Blue.
Questions
- What color is #0C0F27?
- #0C0F27 is a very dark, moderate blue, closest to the named color Void. It belongs to the black family of colors.
- What is the RGB value of #0C0F27?
- The RGB value is 12, 15, 39: 12 red, 15 green and 39 blue on a 0 to 255 scale.
- What is the complementary color of #0C0F27?
- The complementary color is #27240C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C0F27?
- White text. Black text has a contrast ratio of 1.11:1 and white text 18.86:1. WCAG asks for at least 4.5:1 for normal text.