#2C4F12#2C4F12

#2C4F12 is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.7% C 0.097 H 134.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2C4F12
RGBrgb(44, 79, 18)
HSLhsl(94, 63%, 19%)
HSVhsv(94, 77%, 31%)
CMYKcmyk(44.3%, 0%, 77.2%, 69%)
CIE-LABlab(29.84, -24.49, 30.50)
CIE-LCHlch(29.84, 39.12, 128.75°)
OKLaboklab(38.7% -0.0684 0.0691)
OKLCHoklch(38.7% 0.097 134.7)
XYZxyz(3.9438, 6.1709, 1.5555)
Luminance0.0617 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F12 #35124F
analogous
#4B4F12 #2C4F12 #124F17
triadic
#2C4F12 #122C4F #4F122C
tetradic
#2C4F12 #124B4F #35124F #4F1712
square
#2C4F12 #124B4F #35124F #4F1712
split-complementary
#2C4F12 #17124F #4F124B
monochromatic
#0E1906 #101D07 #2C4F12 #48811D #64B329

Accessibility & contrast

On white

9.40
#2C4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2C4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4F12
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F12#FFFFFF#000000##FFFFFF
##2C4F121.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4D4518
Tritanopia (blue-blind)
#2B4C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4f12;
/* rgb */ color: rgb(44, 79, 18);
/* oklch */ color: oklch(38.7% 0.097 134.7);
Tailwind
colors: {
  custom: {
    50: '#698054',
    500: '#2c4f12',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f12;
$custom-light: #698054;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f12",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 94.426,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38695,
    "c": 0.09719,
    "h": 134.7
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#2C4F12
secondary
#653588
accent
#42E6A0
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C4F12

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2C4F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva