Skip to content

#0c451f

a deep, vivid green · cool · closest name: darkslategray

RGB
12, 69, 31
HSL
140°, 70%, 16%
CMYK
83, 0, 55, 73
Luminance
0.0443

Every format

HEX#0c451f
RGBrgb(12, 69, 31)
HSLhsl(140, 70%, 16%)
CMYKcmyk(83%, 0%, 55%, 73%)
LABlab(25.1 -27.7 17.9)
LCHlch(25.1 33.0 147.2)
OKLCHoklch(0.345 0.086 149.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#0c451f on white: 11.13:1
AA ✓ pass · AA-large · AAA
Aa
#0c451f on black: 1.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green27.1%
Blue12.2%

CMYK percentages

Cyan82.6%
Magenta0.0%
Yellow55.1%
Key (black)72.9%

Color previews

#0c451f text on a black background

contrast 1.89:1

Card sample

#0c451f text on a white background

contrast 11.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0c451f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c451f in the Color Lab