#0C317C color
The hex color #0C317C is a dark, vivid blue.
In the RGB color model it is made of 4.7% red, 19.2% green and 48.6% blue (12, 49, 124).
Its hue angle is 220°, with 82% saturation and 27% lightness. For print, the CMYK equivalent is 90% cyan, 60% magenta, 0% yellow and 51% black.
The closest named color is Below the Surface (#0A2F7C), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.03:1).
#0C317C color codes
| HEX | #0C317C | |
|---|---|---|
| RGB | rgb(12, 49, 124) | |
| RGB percent | rgb(4.7%, 19.2%, 48.6%) | |
| HSL | hsl(220, 82%, 27%) | |
| HSV / HSB | hsv(220, 90%, 49%) | |
| CMYK | cmyk(90%, 60%, 0%, 51%) | |
| CIE LAB | lab(22.76, 18.87, -45.97) | |
| CIE LCH | lch(22.76, 49.69, 292.32) | |
| CIE XYZ | xyz(4.887, 3.729, 19.527) | |
| Decimal | 799100 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C317C, 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 #0C317C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.75:1 | Fail | Fail | Fail |
| Sample text | 12.03:1 | Pass | Pass | Pass |
| #0C317C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.03:1 | Pass | Pass | Pass |
| Sample text | 1.75: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 #0C317C looks to people with the most common types of color vision deficiency.
#003c7fProtanopia
no red cones#00317bDeuteranopia
no green cones#004451Tritanopia
no blue cones#363636Achromatopsia
no color vision
CSS examples
.background { background-color: #0c317c; }
.text { color: #0c317c; }
.border { border: 2px solid #0c317c; }
.transparent { background-color: rgb(12 49 124 / 50%); }
.gradient { background: linear-gradient(to right, #0c317c, #1f0c7c); }
Similar colors
#0a2f7cBelow the Surface#1c3378Twilight Express#003388One Minute to Midnight#223382Deep Space Royal#13336fAtlantic Navy#273287Intergalactic Highway#003368Neptune’s Dream#082567Dark Sapphire
Closest common color name: Egyptian Blue.
Questions
- What color is #0C317C?
- #0C317C is a dark, vivid blue, closest to the named color Below the Surface. It belongs to the blue family of colors.
- What is the RGB value of #0C317C?
- The RGB value is 12, 49, 124: 12 red, 49 green and 124 blue on a 0 to 255 scale.
- What is the complementary color of #0C317C?
- The complementary color is #7C570C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C317C?
- White text. Black text has a contrast ratio of 1.75:1 and white text 12.03:1. WCAG asks for at least 4.5:1 for normal text.