#0C0C56 color

#0C0C56 rgb(12, 12, 86)
Shades of black

The hex color #0C0C56 is a very dark, moderate blue.

In the RGB color model it is made of 4.7% red, 4.7% green and 33.7% blue (12, 12, 86).

Its hue angle is 240°, with 76% saturation and 19% lightness. For print, the CMYK equivalent is 86% cyan, 86% magenta, 0% yellow and 66% black.

The closest named color is Space Colonisation (#150F5B), a difference of 1.2 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 17.46:1).

#0C0C56 color codes

HEX#0C0C56
RGBrgb(12, 12, 86)
RGB percentrgb(4.7%, 4.7%, 33.7%)
HSLhsl(240, 76%, 19%)
HSV / HSBhsv(240, 86%, 34%)
CMYKcmyk(86%, 86%, 0%, 66%)
CIE LABlab(9.1, 28.99, -43.51)
CIE LCHlch(9.1, 52.28, 303.67)
CIE XYZxyz(1.962, 1.013, 8.894)
Decimal789590
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #0C0C56, 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 #0C0C56RatioAAAAAAA large
Sample text1.2:1FailFailFail
Sample text17.46:1PassPassPass
#0C0C56 as text onRatioAAAAAAA large
Sample text17.46:1PassPassPass
Sample text1.2:1FailFailFail

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 #0C0C56 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #0c0c56; }
.text { color: #0c0c56; }
.border { border: 2px solid #0c0c56; }
.transparent { background-color: rgb(12 12 86 / 50%); }
.gradient { background: linear-gradient(to right, #0c0c56, #310c56); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #0C0C56?
#0C0C56 is a very dark, moderate blue, closest to the named color Space Colonisation. It belongs to the black family of colors.
What is the RGB value of #0C0C56?
The RGB value is 12, 12, 86: 12 red, 12 green and 86 blue on a 0 to 255 scale.
What is the complementary color of #0C0C56?
The complementary color is #56560C, found by rotating the hue 180° on the color wheel.
Is black or white text better on #0C0C56?
White text. Black text has a contrast ratio of 1.2:1 and white text 17.46:1. WCAG asks for at least 4.5:1 for normal text.