Skip to content

#0c161f

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

RGB
12, 22, 31
HSL
208°, 44%, 8%
CMYK
61, 29, 0, 88
Luminance
0.0075

Every format

HEX#0c161f
RGBrgb(12, 22, 31)
HSLhsl(208, 44%, 8%)
CMYKcmyk(61%, 29%, 0%, 88%)
LABlab(6.8 -1.1 -7.6)
LCHlch(6.8 7.7 261.5)
OKLCHoklch(0.195 0.024 246.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c161f on white: 18.26:1
AA ✓ pass · AA-large · AAA
Aa
#0c161f on black: 1.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green8.6%
Blue12.2%

CMYK percentages

Cyan61.3%
Magenta29.0%
Yellow0.0%
Key (black)87.8%

Color previews

#0c161f text on a black background

contrast 1.15:1

Card sample

#0c161f text on a white background

contrast 18.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c161f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c161f in the Color Lab