Onyx (#0F0F0F)

HEX, RGB, HSL, CMYK values + mood/style/use-case color tags. Use this page to keep your colors consistent across web and print.

Preview

Sample Text
This is how text may look on this color.
Best text color: #FFFFFF
Contrast vs white: 19.17:1 — vs black: 1.10:1

Color values

  • HEX #0F0F0F
  • RGB rgb(15, 15, 15)
  • HSL hsl(0, 0%, 5%)
  • CMYK cmyk( 0, 0, 0, 94 )
  • Websafe #000000

Tags

Tip: tags are heuristic suggestions (helpful for browsing and inspiration).

Color Harmonies

Colors that pair well with #0F0F0F based on color theory relationships.

Complementary

The color directly opposite on the color wheel — creates maximum contrast and vibrance.

Onyx
#0F0F0F Base
Onyx
#0F0F0F
Analogous

Colors adjacent on the wheel — naturally harmonious and pleasing to the eye.

Onyx
#0F0F0F Base
Onyx
#0F0F0F
Onyx
#0F0F0F
Triadic

Three colors equally spaced 120° apart — bold, balanced, and visually rich.

Onyx
#0F0F0F Base
Onyx
#0F0F0F
Onyx
#0F0F0F
Split-Complementary

Two colors flanking the complement — high contrast with less tension than full complementary.

Onyx
#0F0F0F Base
Onyx
#0F0F0F
Onyx
#0F0F0F
Tetradic (Square)

Four colors at 90° intervals — rich variety, best when one color dominates.

Onyx
#0F0F0F Base
Onyx
#0F0F0F
Onyx
#0F0F0F
Onyx
#0F0F0F
Monochromatic

Shades and tints of the same hue — cohesive, elegant, and easy to work with.

Onyx
#0F0F0F Base
#0D0D0D
#232323
#353535
#5C5C5C
Shades & Tints

Darker shades and lighter tints of Onyx, generated by adjusting lightness while keeping the same hue and saturation.

Shades (darker)

#0D0D0D
#0D0D0D
#0E0E0E
#0E0E0E
Onyx #0F0F0F
Onyx #0F0F0F Base
#3C3C3C
#6A6A6A
#979797
#C5C5C5
#F2F2F2
CSS & SCSS Snippets

Ready-to-use code snippets for #0F0F0F. Click the copy button to copy any snippet to your clipboard.

CSS Properties
/* Background */
.element {
    background-color: #0F0F0F;
}

/* Text */
.element {
    color: #0F0F0F;
}

/* Border */
.element {
    border: 1px solid #0F0F0F;
}
CSS Gradient
/* Linear gradient to complementary */
.element {
    background: linear-gradient(
        to right,
        #0F0F0F,
        #0F0F0F
    );
}

/* Radial gradient */
.element {
    background: radial-gradient(
        circle,
        #0F0F0F,
        #0F0F0F
    );
}
SCSS Variable
// SCSS variable
$onyx: #0F0F0F;

// With RGB channels (useful for rgba() usage)
$onyx-r: 15;
$onyx-g: 15;
$onyx-b: 15;

// Usage
.element {
    background-color: $onyx;
    color: rgba($onyx-r, $onyx-g, $onyx-b, 0.8);
}
Color Blindness Simulation

How Onyx appears to people with different types of color vision deficiency.

Normal Vision #0F0F0F How the color appears with full color vision.
Deuteranopia #0F0F0F Deuteranopia affects ~8% of males. Green cones are absent, making it difficult to distinguish red from green. The most common form of color blindness.
Protanopia #0F0F0F Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
Tritanopia #0F0F0F Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
Achromatopsia #0F0F0F Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
Similar Named Colors

The closest named colors to Onyx ranked by perceptual difference (Delta-E 2000 — lower = more similar).

Onyx #0F0F0F Base
Smoky Black #100C08 ΔE 2.23
Rich Black (FOGRA39) #010203 ΔE 2.28
Others #-0 ΔE 2.52
Black #000000 ΔE 2.52

How to use this color

  1. Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
  2. Use CMYK when preparing print assets (posters, packaging, brochures).
  3. Check contrast before using it for text or important UI elements.