#2C4C0B#2C4C0B

#2C4C0B is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.098 H 132.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2C4C0B
RGBrgb(44, 76, 11)
HSLhsl(90, 75%, 17%)
HSVhsv(90, 86%, 30%)
CMYKcmyk(42.1%, 0%, 85.5%, 70.2%)
CIE-LABlab(28.72, -23.54, 32.24)
CIE-LCHlch(28.72, 39.92, 126.13°)
OKLaboklab(37.76% -0.0664 0.0715)
OKLCHoklch(37.76% 0.098 132.9)
XYZxyz(3.6835, 5.7283, 1.2281)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C0B #2B0B4C
analogous
#4C4C0B #2C4C0B #0C4C0B
triadic
#2C4C0B #0B2C4C #4C0B2C
tetradic
#2C4C0B #0B4C4C #2B0B4C #4C0B0C
square
#2C4C0B #0B4C4C #2B0B4C #4C0B0C
split-complementary
#2C4C0B #0B0C4C #4C0B4C
monochromatic
#0F1B04 #0F1B04 #2C4C0B #4B8113 #6AB71A

Accessibility & contrast

On white

9.79
#2C4C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2C4C0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4C0B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C0B#FFFFFF#000000##FFFFFF
##2C4C0B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504500
Deuteranopia (green-blind)
#4B4312
Tritanopia (blue-blind)
#2C4940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2c4c0b;
/* rgb */ color: rgb(44, 76, 11);
/* oklch */ color: oklch(37.8% 0.098 132.9);
Tailwind
colors: {
  custom: {
    50: '#697e50',
    500: '#2c4c0b',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c0b;
$custom-light: #697e50;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c0b",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 11
  },
  "hsl": {
    "h": 89.538,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3776,
    "c": 0.09758,
    "h": 132.9
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#2C4C0B
secondary
#592B88
accent
#36F192
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2C4C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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