0C021A

#0C021A closest to Obsidian Shard

#0C021A is a very dark black; the closest named color is Obsidian Shard. In the RGB color model it is made of 4.7% red, 0.8% green and 10.2% blue (rgb(12, 2, 26)). Its HSL value is 265° hue, 86% saturation and 5% lightness, and in CMYK it is 54% cyan, 92% magenta, 0% yellow and 90% black. #0C021A is a cool color. White text reads best on it, with a contrast ratio of 20.21:1.

#0C021A color conversion

HEX
RGB
HSL
HSB / HSV
HWB
CMYK
XYZ
CIELAB
CIELCh
CIELUV
OKLCH

Variations of #0C021A

Shades

Mixed with black: richer and darker.

Tints

Mixed with white: lighter and softer.

Tones

Mixed with gray: calmer and more muted.

Hues

The same lightness and chroma, rotated around the color wheel.

Temperatures

Cooler on the left, warmer on the right.

#0C021A color harmonies

Complementary

The opposite hue — maximum contrast and energy.

Open in generator →

Split complementary

The two hues next to the complement — contrast with less tension.

Open in generator →

Analogous

Neighbouring hues — calm, cohesive and natural.

Open in generator →

Triadic

Three hues evenly spaced at 120° — vibrant yet balanced.

Open in generator →

Tetradic

Two complementary pairs — rich, best with one dominant color.

Open in generator →

Square

Four hues spaced at 90° — bold and playful.

Open in generator →

#0C021A for color-blind viewers (and dogs)

How #0C021A appears with each type of color vision deficiency (Machado 2009 model) — and to your dog. Try the dog vision simulator →

  • Dog vision 92% similarHow dogs see it · simulated as #000619
  • Protanopia 92% similar1.3% of men, 0.02% of women · simulated as #00061B
  • Protanomaly 93% similar1.3% of men, 0.02% of women · simulated as #01051A
  • Deuteranopia 92% similar1.2% of men, 0.01% of women · simulated as #000619
  • Deuteranomaly 94% similar5% of men, 0.35% of women · simulated as #03051A
  • Tritanopia 92% similar0.001% of men, 0.03% of women · simulated as #09060C
  • Tritanomaly 96% similar0.0001% of men, 0.0001% of women · simulated as #0B0414
  • Achromatopsia 89% similar0.003% of men, 0.003% of women · simulated as #060606
  • Achromatomaly 93% similar0.001% of men, 0.001% of women · simulated as #08050D

#0C021A contrast checker

AaThe quick brown fox jumps over the lazy dog.
20.21:1 Super#0C021A text on white
AA normalPassAAA normalPass
AA largePassAAA largePass
AaThe quick brown fox jumps over the lazy dog.
1.04:1 Very poor#0C021A text on black
AA normalFailAAA normalFail
AA largeFailAAA largeFail

Need another background? Pick any pair in the palette generator and open the contrast panel.

Colors similar to #0C021A

Palettes with #0C021A

#0C021A in CSS

/* Obsidian Shard */
.color { color: #0C021A; }
.background { background-color: #0C021A; }
.border { border: 1px solid #0C021A; }

/* Other notations */
color: rgb(12 2 26);
color: hsl(265 86% 5%);
color: oklch(0.132 0.056 301.5);

#0C021A FAQ

What color is #0C021A?

#0C021A is a very dark black. Its closest named color is Obsidian Shard. It belongs to the black color family and is a cool color.

What is the RGB value of #0C021A?

#0C021A is rgb(12, 2, 26) in RGB, hsl(265, 86%, 5%) in HSL and cmyk(54%, 92%, 0%, 90%) in CMYK.

What is the complementary color of #0C021A?

The complementary color of #0C021A is #101A02, which sits opposite it on the color wheel.

Which text color works on #0C021A?

White text has the best contrast on #0C021A: 20.21:1, which meets the WCAG AA requirement of 4.5:1 for normal text.

Is #0C021A a warm or cool color?

#0C021A is a cool color.