#2C4F0C#2C4F0C

#2C4F0C is a dark, moderate yellow-green. Relative luminance 0.062; OKLCH L 38.6% C 0.101 H 133.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2C4F0C
RGBrgb(44, 79, 12)
HSLhsl(91, 74%, 18%)
HSVhsv(91, 85%, 31%)
CMYKcmyk(44.3%, 0%, 84.8%, 69%)
CIE-LABlab(29.80, -24.93, 32.90)
CIE-LCHlch(29.80, 41.28, 127.15°)
OKLaboklab(38.65% -0.0701 0.0731)
OKLCHoklch(38.65% 0.101 133.8)
XYZxyz(3.9010, 6.1538, 1.3300)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4F0C #2F0C4F
analogous
#4D4F0C #2C4F0C #0C4F0D
triadic
#2C4F0C #0C2C4F #4F0C2C
tetradic
#2C4F0C #0C4D4F #2F0C4F #4F0D0C
square
#2C4F0C #0C4D4F #2F0C4F #4F0D0C
split-complementary
#2C4F0C #0D0C4F #4F0C4D
monochromatic
#0F1B04 #0F1B04 #2C4F0C #4A8414 #67B91C

Accessibility & contrast

On white

9.41
#2C4F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4F0C
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4F0C#FFFFFF#000000##FFFFFF
##2C4F0C1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524800
Deuteranopia (green-blind)
#4E4513
Tritanopia (blue-blind)
#2C4C42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2c4f0c;
/* rgb */ color: rgb(44, 79, 12);
/* oklch */ color: oklch(38.6% 0.101 133.8);
Tailwind
colors: {
  custom: {
    50: '#698051',
    500: '#2c4f0c',
    950: '#000000',
  },
}
SCSS
$custom: #2c4f0c;
$custom-light: #698051;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4f0c",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 12
  },
  "hsl": {
    "h": 91.343,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.38647,
    "c": 0.10123,
    "h": 133.8
  },
  "luminance": 0.06154
}

Semantic roles & 50–950 ramp

primary
#2C4F0C
secondary
#5E2C8B
accent
#38F098
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #2C4F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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