Skip to content

#0f1f1f

a deep, soft cyan · cool · closest name: black

RGB
15, 31, 31
HSL
180°, 35%, 9%
CMYK
52, 0, 0, 88
Luminance
0.0118

Every format

HEX#0f1f1f
RGBrgb(15, 31, 31)
HSLhsl(180, 35%, 9%)
CMYKcmyk(52%, 0%, 0%, 88%)
LABlab(10.4 -6.7 -2.1)
LCHlch(10.4 7.1 197.6)
OKLCHoklch(0.225 0.022 195.7)

Copy-ready code

/* CSS */
color: #0f1f1f;
background-color: #0f1f1f;
/* Tailwind (arbitrary) */
class="text-[#0f1f1f] bg-[#0f1f1f]"
/* SCSS */
$brand: #0f1f1f;
/* SwiftUI */
Color(red: 0.059, green: 0.122, blue: 0.122)
/* Android */
Color.parseColor("#0f1f1f")

Accessibility — WCAG contrast

Aa
#0f1f1f on white: 16.99:1
AA ✓ pass · AA-large · AAA
Aa
#0f1f1f on black: 1.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green12.2%
Blue12.2%

CMYK percentages

Cyan51.6%
Magenta0.0%
Yellow0.0%
Key (black)87.8%

Color previews

#0f1f1f text on a black background

contrast 1.24:1

Card sample

#0f1f1f text on a white background

contrast 16.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0f1f1f;
Background color
Panel with #0f1f1f background
background-color: #0f1f1f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0f1f1f;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(15, 31, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 31, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f1f1f;
background: linear-gradient(135deg, #0f1f1f, #0F141F);

Monochromatic scale

Palettes built from #0f1f1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f1f1f in the Color Lab