#2C4004#2C4004

#2C4004 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.2% C 0.085 H 127.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2C4004
RGBrgb(44, 64, 4)
HSLhsl(80, 88%, 13%)
HSVhsv(80, 94%, 25%)
CMYKcmyk(31.2%, 0%, 93.8%, 74.9%)
CIE-LABlab(24.36, -17.82, 30.91)
CIE-LCHlch(24.36, 35.68, 119.97°)
OKLaboklab(34.19% -0.0516 0.0675)
OKLCHoklch(34.19% 0.085 127.4)
XYZxyz(2.8940, 4.2110, 0.7752)
Luminance0.0421 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4004 #180440
analogous
#403604 #2C4004 #0E4004
triadic
#2C4004 #042C40 #40042C
tetradic
#2C4004 #044036 #180440 #40040E
square
#2C4004 #044036 #180440 #40040E
split-complementary
#2C4004 #040E40 #360440
monochromatic
#141D02 #141D02 #2C4004 #547A08 #7BB30B

Accessibility & contrast

On white

11.40
#2C4004 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C4004 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4004
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4004#FFFFFF#000000##FFFFFF
##2C40041.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B00
Deuteranopia (green-blind)
#41390A
Tritanopia (blue-blind)
#2E3D35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c4004;
/* rgb */ color: rgb(44, 64, 4);
/* oklch */ color: oklch(34.2% 0.085 127.4);
Tailwind
colors: {
  custom: {
    50: '#68754b',
    500: '#2c4004',
    950: '#000000',
  },
}
SCSS
$custom: #2c4004;
$custom-light: #68754b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4004",
  "rgb": {
    "r": 44,
    "g": 64,
    "b": 4
  },
  "hsl": {
    "h": 80,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.3419,
    "c": 0.085,
    "h": 127.4
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#2C4004
secondary
#3F1F81
accent
#29FE70
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#060801
muted
#7A7B77

Preview Lab

Preview with #2C4004

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

Preview Lab → · Contrast checker → · Palette generator →

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