#000C8C color
The hex color #000C8C is a dark, vivid blue.
In the RGB color model it is made of 0% red, 4.7% green and 54.9% blue (0, 12, 140).
Its hue angle is 235°, with 100% saturation and 27% lightness. For print, the CMYK equivalent is 100% cyan, 91% magenta, 0% yellow and 45% black.
The closest named color is Ultramarine (#120A8F), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.67:1).
#000C8C color codes
| HEX | #000C8C | |
|---|---|---|
| RGB | rgb(0, 12, 140) | |
| RGB percent | rgb(0%, 4.7%, 54.9%) | |
| HSL | hsl(235, 100%, 27%) | |
| HSV / HSB | hsv(235, 100%, 55%) | |
| CMYK | cmyk(100%, 91%, 0%, 45%) | |
| CIE LAB | lab(16.28, 46.47, -66.75) | |
| CIE LCH | lch(16.28, 81.33, 304.85) | |
| CIE XYZ | xyz(4.863, 2.156, 24.966) | |
| Decimal | 3212 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #000C8C, 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 #000C8C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.43:1 | Fail | Fail | Fail |
| Sample text | 14.67:1 | Pass | Pass | Pass |
| #000C8C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.67:1 | Pass | Pass | Pass |
| Sample text | 1.43: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 #000C8C looks to people with the most common types of color vision deficiency.
#002f8fProtanopia
no red cones#00218aDeuteranopia
no green cones#003a51Tritanopia
no blue cones#282828Achromatopsia
no color vision
CSS examples
.background { background-color: #000c8c; }
.text { color: #000c8c; }
.border { border: 2px solid #000c8c; }
.transparent { background-color: rgb(0 12 140 / 50%); }
.gradient { background: linear-gradient(to right, #000c8c, #3a008c); }
Similar colors
#120a8fUltramarine#111188Galactic Cruise#00008bDark Blue#000088Midnight in Tokyo#001199Space Exploration#221188Nightly Expedition#0c1793Royal#000099Everlasting Night
Questions
- What color is #000C8C?
- #000C8C is a dark, vivid blue, closest to the named color Ultramarine. It belongs to the blue family of colors.
- What is the RGB value of #000C8C?
- The RGB value is 0, 12, 140: 0 red, 12 green and 140 blue on a 0 to 255 scale.
- What is the complementary color of #000C8C?
- The complementary color is #8C8000, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #000C8C?
- White text. Black text has a contrast ratio of 1.43:1 and white text 14.67:1. WCAG asks for at least 4.5:1 for normal text.