#0C2980 color
The hex color #0C2980 is a dark, vivid blue.
In the RGB color model it is made of 4.7% red, 16.1% green and 50.2% blue (12, 41, 128).
Its hue angle is 225°, with 83% saturation and 27% lightness. For print, the CMYK equivalent is 91% cyan, 68% magenta, 0% yellow and 50% black.
The closest named color is Naval Adventures (#072688), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.77:1).
#0C2980 color codes
| HEX | #0C2980 | |
|---|---|---|
| RGB | rgb(12, 41, 128) | |
| RGB percent | rgb(4.7%, 16.1%, 50.2%) | |
| HSL | hsl(225, 83%, 27%) | |
| HSV / HSB | hsv(225, 91%, 50%) | |
| CMYK | cmyk(91%, 68%, 0%, 50%) | |
| CIE LAB | lab(20.91, 26.22, -51.52) | |
| CIE LCH | lch(20.91, 57.8, 296.97) | |
| CIE XYZ | xyz(4.839, 3.222, 20.785) | |
| Decimal | 797056 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C2980, 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 #0C2980 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.64:1 | Fail | Fail | Fail |
| Sample text | 12.77:1 | Pass | Pass | Pass |
| #0C2980 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.77:1 | Pass | Pass | Pass |
| Sample text | 1.64: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 #0C2980 looks to people with the most common types of color vision deficiency.
#003883Protanopia
no red cones#002d7eDeuteranopia
no green cones#004150Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #0c2980; }
.text { color: #0c2980; }
.border { border: 2px solid #0c2980; }
.transparent { background-color: rgb(12 41 128 / 50%); }
.gradient { background: linear-gradient(to right, #0c2980, #290c80); }
Similar colors
#072688Naval Adventures#002277Long-Haul Flight#002489Lost in Heaven#112473Midnight Crest#0a2f7cBelow the Surface#223382Deep Space Royal#273287Intergalactic Highway#003388One Minute to Midnight
Closest common color name: Midnight Blue.
Questions
- What color is #0C2980?
- #0C2980 is a dark, vivid blue, closest to the named color Naval Adventures. It belongs to the blue family of colors.
- What is the RGB value of #0C2980?
- The RGB value is 12, 41, 128: 12 red, 41 green and 128 blue on a 0 to 255 scale.
- What is the complementary color of #0C2980?
- The complementary color is #80630C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C2980?
- White text. Black text has a contrast ratio of 1.64:1 and white text 12.77:1. WCAG asks for at least 4.5:1 for normal text.