#0C1867 color
The hex color #0C1867 is a dark, moderate blue.
In the RGB color model it is made of 4.7% red, 9.4% green and 40.4% blue (12, 24, 103).
Its hue angle is 232°, with 79% saturation and 23% lightness. For print, the CMYK equivalent is 88% cyan, 77% magenta, 0% yellow and 60% black.
The closest named color is Midnight Blue (#191970), a difference of 2 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.65:1).
#0C1867 color codes
| HEX | #0C1867 | |
|---|---|---|
| RGB | rgb(12, 24, 103) | |
| RGB percent | rgb(4.7%, 9.4%, 40.4%) | |
| HSL | hsl(232, 79%, 23%) | |
| HSV / HSB | hsv(232, 88%, 40%) | |
| CMYK | cmyk(88%, 77%, 0%, 60%) | |
| CIE LAB | lab(13.89, 27.87, -46.97) | |
| CIE LCH | lch(13.89, 54.61, 300.69) | |
| CIE XYZ | xyz(2.926, 1.71, 13.005) | |
| Decimal | 792679 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1867, 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 #0C1867 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.34:1 | Fail | Fail | Fail |
| Sample text | 15.65:1 | Pass | Pass | Pass |
| #0C1867 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.65:1 | Pass | Pass | Pass |
| Sample text | 1.34: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 #0C1867 looks to people with the most common types of color vision deficiency.
#002869Protanopia
no red cones#001f66Deuteranopia
no green cones#002f3eTritanopia
no blue cones#232323Achromatopsia
no color vision
CSS examples
.background { background-color: #0c1867; }
.text { color: #0c1867; }
.border { border: 2px solid #0c1867; }
.transparent { background-color: rgb(12 24 103 / 50%); }
.gradient { background: linear-gradient(to right, #0c1867, #2d0c67); }
Similar colors
#191970Midnight Blue#19197020000 Leagues Under the Sea#111166Dying Storm Blue#150f5bSpace Colonisation#001155Interstellar Blue#222266Intergalactic Cowboy#112473Midnight Crest#002277Long-Haul Flight
Questions
- What color is #0C1867?
- #0C1867 is a dark, moderate blue, closest to the named color Midnight Blue. It belongs to the blue family of colors.
- What is the RGB value of #0C1867?
- The RGB value is 12, 24, 103: 12 red, 24 green and 103 blue on a 0 to 255 scale.
- What is the complementary color of #0C1867?
- The complementary color is #675B0C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1867?
- White text. Black text has a contrast ratio of 1.34:1 and white text 15.65:1. WCAG asks for at least 4.5:1 for normal text.