Skip to content

#2f080c

a deep, vivid red · warm · closest name: black

RGB
47, 8, 12
HSL
354°, 71%, 11%
CMYK
0, 83, 75, 82
Luminance
0.0080

Every format

HEX#2f080c
RGBrgb(47, 8, 12)
HSLhsl(354, 71%, 11%)
CMYKcmyk(0%, 83%, 75%, 82%)
LABlab(7.3 20.1 6.3)
LCHlch(7.3 21.0 17.5)
OKLCHoklch(0.208 0.063 18.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#2f080c on white: 18.09:1
AA ✓ pass · AA-large · AAA
Aa
#2f080c on black: 1.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red18.4%
Green3.1%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta83.0%
Yellow74.5%
Key (black)81.6%

Color previews

#2f080c text on a black background

contrast 1.16:1

Card sample

#2f080c text on a white background

contrast 18.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #2f080c;
Background color
Panel with #2f080c background
background-color: #2f080c;
Text shadow — hex

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #2f080c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #2f080c in the Color Lab