#2C4A0F#2C4A0F

#2C4A0F is a dark, moderate yellow-green. Relative luminance 0.055; OKLCH L 37.2% C 0.092 H 132.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#2C4A0F
RGBrgb(44, 74, 15)
HSLhsl(91, 66%, 17%)
HSVhsv(91, 80%, 29%)
CMYKcmyk(40.5%, 0%, 79.7%, 71%)
CIE-LABlab(28.03, -22.27, 29.98)
CIE-LCHlch(28.03, 37.34, 126.60°)
OKLaboklab(37.21% -0.0626 0.0675)
OKLCHoklch(37.21% 0.092 132.9)
XYZxyz(3.5737, 5.4674, 1.3189)
Luminance0.0547 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4A0F #2D0F4A
analogous
#4A4A0F #2C4A0F #0F4A0F
triadic
#2C4A0F #0F2C4A #4A0F2C
tetradic
#2C4A0F #0F4A4A #2D0F4A #4A0F0F
square
#2C4A0F #0F4A4A #2D0F4A #4A0F0F
split-complementary
#2C4A0F #0F0F4A #4A0F4A
monochromatic
#0F1905 #0F1905 #2C4A0F #4A7D19 #69B024

Accessibility & contrast

On white

10.03
#2C4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2C4A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4A0F
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4A0F#FFFFFF#000000##FFFFFF
##2C4A0F1.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4405
Deuteranopia (green-blind)
#494115
Tritanopia (blue-blind)
#2C473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2c4a0f;
/* rgb */ color: rgb(44, 74, 15);
/* oklch */ color: oklch(37.2% 0.092 132.9);
Tailwind
colors: {
  custom: {
    50: '#687d52',
    500: '#2c4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #2c4a0f;
$custom-light: #687d52;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4a0f",
  "rgb": {
    "r": 44,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 90.508,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.09204,
    "h": 132.9
  },
  "luminance": 0.05468
}

Semantic roles & 50–950 ramp

primary
#2C4A0F
secondary
#5B3084
accent
#3FE995
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2C4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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