Skip to content

#122f23

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

RGB
18, 47, 35
HSL
155°, 45%, 13%
CMYK
62, 0, 26, 82
Luminance
0.0228

Every format

HEX#122f23
RGBrgb(18, 47, 35)
HSLhsl(155, 45%, 13%)
CMYKcmyk(62%, 0%, 26%, 82%)
LABlab(16.9 -14.5 4.4)
LCHlch(16.9 15.2 163.0)
OKLCHoklch(0.279 0.042 164.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#122f23 on white: 14.42:1
AA ✓ pass · AA-large · AAA
Aa
#122f23 on black: 1.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red7.1%
Green18.4%
Blue13.7%

CMYK percentages

Cyan61.7%
Magenta0.0%
Yellow25.5%
Key (black)81.6%

Color previews

#122f23 text on a black background

contrast 1.46:1

Card sample

#122f23 text on a white background

contrast 14.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(18, 47, 35, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(18, 47, 35, 0.45);
Border & gradient
Gradient panel
border: 3px solid #122f23;
background: linear-gradient(135deg, #122f23, #12282F);

Monochromatic scale

Palettes built from #122f23

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #122f23 in the Color Lab