#0C2F5B color
The hex color #0C2F5B is a dark, moderate azure.
In the RGB color model it is made of 4.7% red, 18.4% green and 35.7% blue (12, 47, 91).
Its hue angle is 213°, with 77% saturation and 20% lightness. For print, the CMYK equivalent is 87% cyan, 48% magenta, 0% yellow and 64% black.
The closest named color is Marine (#042E60), a difference of 1.1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 13.35:1).
#0C2F5B color codes
| HEX | #0C2F5B | |
|---|---|---|
| RGB | rgb(12, 47, 91) | |
| RGB percent | rgb(4.7%, 18.4%, 35.7%) | |
| HSL | hsl(213, 77%, 20%) | |
| HSV / HSB | hsv(213, 87%, 36%) | |
| CMYK | cmyk(87%, 48%, 0%, 64%) | |
| CIE LAB | lab(19.5, 5.97, -29.89) | |
| CIE LCH | lch(19.5, 30.48, 281.3) | |
| CIE XYZ | xyz(3.056, 2.866, 10.288) | |
| Decimal | 798555 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C2F5B, 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 #0C2F5B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.57:1 | Fail | Fail | Fail |
| Sample text | 13.35:1 | Pass | Pass | Pass |
| #0C2F5B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.35:1 | Pass | Pass | Pass |
| Sample text | 1.57: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 #0C2F5B looks to people with the most common types of color vision deficiency.
#18335dProtanopia
no red cones#062c5aDeuteranopia
no green cones#003a40Tritanopia
no blue cones#2f2f2fAchromatopsia
no color vision
CSS examples
.background { background-color: #0c2f5b; }
.text { color: #0c2f5b; }
.border { border: 2px solid #0c2f5b; }
.transparent { background-color: rgb(12 47 91 / 50%); }
.gradient { background: linear-gradient(to right, #0c2f5b, #100c5b); }
Similar colors
#042e60Marine#003368Neptune’s Dream#0f2d4dMidnight Ocean#13336fAtlantic Navy#1c2e63Mythical Night#03386aLost in Space#003153Prussian Blue#0a3251Beyond the Stars
Questions
- What color is #0C2F5B?
- #0C2F5B is a dark, moderate azure, closest to the named color Marine. It belongs to the blue family of colors.
- What is the RGB value of #0C2F5B?
- The RGB value is 12, 47, 91: 12 red, 47 green and 91 blue on a 0 to 255 scale.
- What is the complementary color of #0C2F5B?
- The complementary color is #5B380C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C2F5B?
- White text. Black text has a contrast ratio of 1.57:1 and white text 13.35:1. WCAG asks for at least 4.5:1 for normal text.