Skip to content

#070c0f

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

RGB
7, 12, 15
HSL
203°, 36%, 4%
CMYK
53, 20, 0, 94
Luminance
0.0034

Every format

HEX#070c0f
RGBrgb(7, 12, 15)
HSLhsl(203, 36%, 4%)
CMYKcmyk(53%, 20%, 0%, 94%)
LABlab(3.1 -0.8 -1.8)
LCHlch(3.1 2.0 245.7)
OKLCHoklch(0.150 0.011 233.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#070c0f on white: 19.65:1
AA ✓ pass · AA-large · AAA
Aa
#070c0f on black: 1.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red2.7%
Green4.7%
Blue5.9%

CMYK percentages

Cyan53.3%
Magenta20.0%
Yellow0.0%
Key (black)94.1%

Color previews

#070c0f text on a black background

contrast 1.07:1

Card sample

#070c0f text on a white background

contrast 19.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #070c0f;
Background color
Panel with #070c0f background
background-color: #070c0f;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #070c0f;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #070c0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #070c0f in the Color Lab