#0C1C58 color
The hex color #0C1C58 is a very dark, moderate blue.
In the RGB color model it is made of 4.7% red, 11% green and 34.5% blue (12, 28, 88).
Its hue angle is 227°, with 76% saturation and 20% lightness. For print, the CMYK equivalent is 86% cyan, 68% magenta, 0% yellow and 65% black.
The closest named color is Fibonacci Blue (#112358), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.88:1).
#0C1C58 color codes
| HEX | #0C1C58 | |
|---|---|---|
| RGB | rgb(12, 28, 88) | |
| RGB percent | rgb(4.7%, 11%, 34.5%) | |
| HSL | hsl(227, 76%, 20%) | |
| HSV / HSB | hsv(227, 86%, 35%) | |
| CMYK | cmyk(86%, 68%, 0%, 65%) | |
| CIE LAB | lab(13.31, 18.87, -37.92) | |
| CIE LCH | lch(13.31, 42.36, 296.45) | |
| CIE XYZ | xyz(2.328, 1.613, 9.419) | |
| Decimal | 793688 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C1C58, 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 #0C1C58 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.32:1 | Fail | Fail | Fail |
| Sample text | 15.88:1 | Pass | Pass | Pass |
| #0C1C58 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.88:1 | Pass | Pass | Pass |
| Sample text | 1.32: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 #0C1C58 looks to people with the most common types of color vision deficiency.
#00265aProtanopia
no red cones#001f57Deuteranopia
no green cones#002c37Tritanopia
no blue cones#222222Achromatopsia
no color vision
CSS examples
.background { background-color: #0c1c58; }
.text { color: #0c1c58; }
.border { border: 2px solid #0c1c58; }
.transparent { background-color: rgb(12 28 88 / 50%); }
.gradient { background: linear-gradient(to right, #0c1c58, #220c58); }
Similar colors
#112358Fibonacci Blue#112255Dark Soul#002266Midnight Melancholia#052462Black Sea Night#002366Deep Sea Nightmare#001155Interstellar Blue#082567Dark Sapphire#222266Intergalactic Cowboy
Closest common color name: Midnight Blue.
Questions
- What color is #0C1C58?
- #0C1C58 is a very dark, moderate blue, closest to the named color Fibonacci Blue. It belongs to the blue family of colors.
- What is the RGB value of #0C1C58?
- The RGB value is 12, 28, 88: 12 red, 28 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #0C1C58?
- The complementary color is #58480C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C1C58?
- White text. Black text has a contrast ratio of 1.32:1 and white text 15.88:1. WCAG asks for at least 4.5:1 for normal text.