#2A4F11#2A4F11

#2A4F11 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.6% C 0.099 H 135.5°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2A4F11
RGBrgb(42, 79, 17)
HSLhsl(96, 65%, 19%)
HSVhsv(96, 78%, 31%)
CMYKcmyk(46.8%, 0%, 78.5%, 69%)
CIE-LABlab(29.72, -25.34, 30.79)
CIE-LCHlch(29.72, 39.88, 129.46°)
OKLaboklab(38.57% -0.0706 0.0695)
OKLCHoklch(38.57% 0.099 135.5)
XYZxyz(3.8519, 6.1245, 1.5094)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F11 #36114F
analogous
#494F11 #2A4F11 #114F17
triadic
#2A4F11 #112A4F #4F112A
tetradic
#2A4F11 #11494F #36114F #4F1711
square
#2A4F11 #11494F #36114F #4F1711
split-complementary
#2A4F11 #17114F #4F1149
monochromatic
#0D1905 #0F1D06 #2A4F11 #45811C #60B427

Accessibility & contrast

On white

9.44
#2A4F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4F11
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F11#FFFFFF#000000##FFFFFF
##2A4F111.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524807
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#294C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f11;
/* rgb */ color: rgb(42, 79, 17);
/* oklch */ color: oklch(38.6% 0.099 135.5);
Tailwind
colors: {
  custom: {
    50: '#678053',
    500: '#2a4f11',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f11;
$custom-light: #678053;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f11",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 17
  },
  "hsl": {
    "h": 95.806,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38569,
    "c": 0.09912,
    "h": 135.5
  },
  "luminance": 0.06125
}

Semantic roles & 50–950 ramp

primary
#2A4F11
secondary
#663388
accent
#40E8A4
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F11

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

Preview Lab → · Contrast checker → · Palette generator →

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