Skip to content

#0f1f1c

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

RGB
15, 31, 28
HSL
169°, 35%, 9%
CMYK
52, 0, 10, 88
Luminance
0.0117

Every format

HEX#0f1f1c
RGBrgb(15, 31, 28)
HSLhsl(169, 35%, 9%)
CMYKcmyk(52%, 0%, 10%, 88%)
LABlab(10.3 -7.7 -0.1)
LCHlch(10.3 7.7 180.7)
OKLCHoklch(0.224 0.023 180.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0f1f1c on white: 17.03:1
AA ✓ pass · AA-large · AAA
Aa
#0f1f1c on black: 1.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red5.9%
Green12.2%
Blue11.0%

CMYK percentages

Cyan51.6%
Magenta0.0%
Yellow9.7%
Key (black)87.8%

Color previews

#0f1f1c text on a black background

contrast 1.23:1

Card sample

#0f1f1c text on a white background

contrast 17.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0f1f1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0f1f1c in the Color Lab