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
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
Mood
Style
Use case
Tip: tags are heuristic suggestions (helpful for browsing and inspiration).
Color Harmonies
Colors that pair well with #0F0F0F based on color theory relationships.
The color directly opposite on the color wheel — creates maximum contrast and vibrance.
#0F0F0F
Base
#0F0F0F
Shades and tints of the same hue — cohesive, elegant, and easy to work with.
#0F0F0F
Base
#0D0D0D
#232323
#353535
#5C5C5C
Darker shades and lighter tints of Onyx, generated by adjusting lightness while keeping the same hue and saturation.
Shades (darker)
#0D0D0D
#0D0D0D
#0E0E0E
#0E0E0E
#0F0F0F
#0F0F0F
Base
#3C3C3C
#6A6A6A
#979797
#C5C5C5
#F2F2F2
Ready-to-use code snippets for #0F0F0F. Click the copy button to copy any snippet to your clipboard.
/* Background */
.element {
background-color: #0F0F0F;
}
/* Text */
.element {
color: #0F0F0F;
}
/* Border */
.element {
border: 1px solid #0F0F0F;
}
/* Linear gradient to complementary */
.element {
background: linear-gradient(
to right,
#0F0F0F,
#0F0F0F
);
}
/* Radial gradient */
.element {
background: radial-gradient(
circle,
#0F0F0F,
#0F0F0F
);
}
// 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);
}
How Onyx appears to people with different types of color vision deficiency.
#0F0F0F
How the color appears with full color vision.
#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.
#0F0F0F
Protanopia affects ~1% of males. Red cones are absent, causing reds to appear dark and indistinguishable from greens and browns.
#0F0F0F
Tritanopia is rare (~0.003%). Blue cones are absent, making blue and yellow difficult to distinguish. Blues may appear green, yellows appear pink.
#0F0F0F
Achromatopsia is complete color blindness. The world is seen entirely in shades of grey. Affects ~1 in 30,000 people.
How to use this color
- Copy HEX for CSS and design tools, or RGB/HSL for UI adjustments.
- Use CMYK when preparing print assets (posters, packaging, brochures).
- Check contrast before using it for text or important UI elements.