Skip to content

#314708

a deep, electric green · cool · closest name: olivedrab

RGB
49, 71, 8
HSL
81°, 80%, 16%
CMYK
31, 0, 89, 72
Luminance
0.0518

Every format

HEX#314708
RGBrgb(49, 71, 8)
HSLhsl(81, 80%, 16%)
CMYKcmyk(31%, 0%, 89%, 72%)
LABlab(27.2 -19.0 32.1)
LCHlch(27.2 37.3 120.6)
OKLCHoklch(0.366 0.089 127.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#314708 on white: 10.32:1
AA ✓ pass · AA-large · AAA
Aa
#314708 on black: 2.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red19.2%
Green27.8%
Blue3.1%

CMYK percentages

Cyan31.0%
Magenta0.0%
Yellow88.7%
Key (black)72.2%

Color previews

#314708 text on a black background

contrast 2.04:1

Card sample

#314708 text on a white background

contrast 10.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #314708

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #314708 in the Color Lab