#0F0D18 color
The hex color #0F0D18 is a very dark, desaturated violet.
In the RGB color model it is made of 5.9% red, 5.1% green and 9.4% blue (15, 13, 24).
Its hue angle is 251°, with 30% saturation and 7% lightness. For print, the CMYK equivalent is 37% cyan, 46% magenta, 0% yellow and 91% black.
The closest named color is Obsidian Shard (#060313), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 19.25:1).
#0F0D18 color codes
| HEX | #0F0D18 | |
|---|---|---|
| RGB | rgb(15, 13, 24) | |
| RGB percent | rgb(5.9%, 5.1%, 9.4%) | |
| HSL | hsl(251, 30%, 7%) | |
| HSV / HSB | hsv(251, 46%, 9%) | |
| CMYK | cmyk(37%, 46%, 0%, 91%) | |
| CIE LAB | lab(4.11, 2.99, -6.14) | |
| CIE LCH | lch(4.11, 6.83, 295.95) | |
| CIE XYZ | xyz(0.506, 0.455, 0.925) | |
| Decimal | 986392 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0F0D18, 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 #0F0D18 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.09:1 | Fail | Fail | Fail |
| Sample text | 19.25:1 | Pass | Pass | Pass |
| #0F0D18 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 19.25:1 | Pass | Pass | Pass |
| Sample text | 1.09:1 | Fail | Fail | Fail |
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 #0F0D18 looks to people with the most common types of color vision deficiency.
#0a0f18Protanopia
no red cones#0a0e18Deuteranopia
no green cones#0d0f11Tritanopia
no blue cones#0e0e0eAchromatopsia
no color vision
CSS examples
.background { background-color: #0f0d18; }
.text { color: #0f0d18; }
.border { border: 2px solid #0f0d18; }
.transparent { background-color: rgb(15 13 24 / 50%); }
.gradient { background: linear-gradient(to right, #0f0d18, #140d18); }
Similar colors
#060313Obsidian Shard#16141cBack in Black#080813Narwhal Gray#16161dEigengrau#0b0c14Midnight Oil#1a161dViolet Void#060b14Dark Rift#0c121bMidnight Edition
Closest common color name: Midnight Black.
Questions
- What color is #0F0D18?
- #0F0D18 is a very dark, desaturated violet, closest to the named color Obsidian Shard. It belongs to the black family of colors.
- What is the RGB value of #0F0D18?
- The RGB value is 15, 13, 24: 15 red, 13 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #0F0D18?
- The complementary color is #16180D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0F0D18?
- White text. Black text has a contrast ratio of 1.09:1 and white text 19.25:1. WCAG asks for at least 4.5:1 for normal text.