#2C4E17#2C4E17

#2C4E17 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.5% C 0.092 H 135.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2C4E17
RGBrgb(44, 78, 23)
HSLhsl(97, 54%, 20%)
HSVhsv(97, 71%, 31%)
CMYKcmyk(43.6%, 0%, 70.5%, 69.4%)
CIE-LABlab(29.53, -23.52, 27.82)
CIE-LCHlch(29.53, 36.44, 130.22°)
OKLaboklab(38.46% -0.0653 0.0642)
OKLCHoklch(38.46% 0.092 135.5)
XYZxyz(3.9177, 6.0459, 1.7710)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4E17 #39174E
analogous
#484E17 #2C4E17 #174E1E
triadic
#2C4E17 #172C4E #4E172C
tetradic
#2C4E17 #17484E #39174E #4E1E17
square
#2C4E17 #17484E #39174E #4E1E17
split-complementary
#2C4E17 #1E174E #4E1748
monochromatic
#0D1807 #111F09 #2C4E17 #477D25 #61AD33

Accessibility & contrast

On white

9.51
#2C4E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2C4E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4E17
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4E17#FFFFFF#000000##FFFFFF
##2C4E171.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514710
Deuteranopia (green-blind)
#4C451B
Tritanopia (blue-blind)
#2B4B43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4e17;
/* rgb */ color: rgb(44, 78, 23);
/* oklch */ color: oklch(38.5% 0.092 135.5);
Tailwind
colors: {
  custom: {
    50: '#688057',
    500: '#2c4e17',
    950: '#000000',
  },
}
SCSS
$custom: #2c4e17;
$custom-light: #688057;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4e17",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 23
  },
  "hsl": {
    "h": 97.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.09158,
    "h": 135.5
  },
  "luminance": 0.06046
}

Semantic roles & 50–950 ramp

primary
#2C4E17
secondary
#693C85
accent
#4ADEA5
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2C4E17

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

Preview Lab → · Contrast checker → · Palette generator →

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