#0C121C color

#0C121C rgb(12, 18, 28)
Shades of black

The hex color #0C121C is a very dark, desaturated azure.

In the RGB color model it is made of 4.7% red, 7.1% green and 11% blue (12, 18, 28).

Its hue angle is 218°, with 40% saturation and 8% lightness. For print, the CMYK equivalent is 57% cyan, 36% magenta, 0% yellow and 89% black.

The closest named color is Midnight Edition (#0C121B), a difference of 0.7 ΔE, which is barely visible.

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

#0C121C color codes

HEX#0C121C
RGBrgb(12, 18, 28)
RGB percentrgb(4.7%, 7.1%, 11%)
HSLhsl(218, 40%, 8%)
HSV / HSBhsv(218, 57%, 11%)
CMYKcmyk(57%, 36%, 0%, 89%)
CIE LABlab(5.37, 0.5, -7.45)
CIE LCHlch(5.37, 7.46, 273.88)
CIE XYZxyz(0.577, 0.595, 1.183)
Decimal791068
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #0C121C, 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 #0C121CRatioAAAAAAA large
Sample text1.12:1FailFailFail
Sample text18.77:1PassPassPass
#0C121C as text onRatioAAAAAAA large
Sample text18.77:1PassPassPass
Sample text1.12: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 #0C121C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #0c121c; }
.text { color: #0c121c; }
.border { border: 2px solid #0c121c; }
.transparent { background-color: rgb(12 18 28 / 50%); }
.gradient { background: linear-gradient(to right, #0c121c, #0e0c1c); }
Background
Text color
Border

Similar colors

Questions

What color is #0C121C?
#0C121C is a very dark, desaturated azure, closest to the named color Midnight Edition. It belongs to the black family of colors.
What is the RGB value of #0C121C?
The RGB value is 12, 18, 28: 12 red, 18 green and 28 blue on a 0 to 255 scale.
What is the complementary color of #0C121C?
The complementary color is #1C160C, found by rotating the hue 180° on the color wheel.
Is black or white text better on #0C121C?
White text. Black text has a contrast ratio of 1.12:1 and white text 18.77:1. WCAG asks for at least 4.5:1 for normal text.