#2C4C0F#2C4C0F

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

Color values

HEX#2C4C0F
RGBrgb(44, 76, 15)
HSLhsl(91, 67%, 18%)
HSVhsv(91, 80%, 30%)
CMYKcmyk(42.1%, 0%, 80.3%, 70.2%)
CIE-LABlab(28.74, -23.26, 30.69)
CIE-LCHlch(28.74, 38.51, 127.16°)
OKLaboklab(37.79% -0.0653 0.069)
OKLCHoklch(37.79% 0.095 133.4)
XYZxyz(3.7093, 5.7387, 1.3641)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4C0F #2F0F4C
analogous
#4A4C0F #2C4C0F #0F4C10
triadic
#2C4C0F #0F2C4C #4C0F2C
tetradic
#2C4C0F #0F4A4C #2F0F4C #4C100F
square
#2C4C0F #0F4A4C #2F0F4C #4C100F
split-complementary
#2C4C0F #100F4C #4C0F4A
monochromatic
#0F1A05 #0F1A05 #2C4C0F #4A7F19 #67B223

Accessibility & contrast

On white

9.78
#2C4C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4C0F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4C0F#FFFFFF#000000##FFFFFF
##2C4C0F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c4c0f;
/* rgb */ color: rgb(44, 76, 15);
/* oklch */ color: oklch(37.8% 0.095 133.4);
Tailwind
colors: {
  custom: {
    50: '#687e52',
    500: '#2c4c0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c4c0f;
$custom-light: #687e52;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4c0f",
  "rgb": {
    "r": 44,
    "g": 76,
    "b": 15
  },
  "hsl": {
    "h": 91.475,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37791,
    "c": 0.09499,
    "h": 133.4
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#2C4C0F
secondary
#5E3186
accent
#3EEA98
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2C4C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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