#2A4A0B#2A4A0B

#2A4A0B is a dark, moderate yellow-green. Relative luminance 0.054; OKLCH L 37.0% C 0.096 H 133.3°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#2A4A0B
RGBrgb(42, 74, 11)
HSLhsl(90, 74%, 17%)
HSVhsv(90, 85%, 29%)
CMYKcmyk(43.2%, 0%, 85.1%, 71%)
CIE-LABlab(27.88, -23.38, 31.41)
CIE-LCHlch(27.88, 39.16, 126.65°)
OKLaboklab(37.05% -0.0658 0.0698)
OKLCHoklch(37.05% 0.096 133.3)
XYZxyz(3.4640, 5.4138, 1.1790)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A0B #2B0B4A
analogous
#4A4A0B #2A4A0B #0B4A0B
triadic
#2A4A0B #0B2A4A #4A0B2A
tetradic
#2A4A0B #0B4A4A #2B0B4A #4A0B0B
square
#2A4A0B #0B4A4A #2B0B4A #4A0B0B
split-complementary
#2A4A0B #0B0B4A #4A0B4A
monochromatic
#0F1B04 #0F1B04 #2A4A0B #487F13 #66B51B

Accessibility & contrast

On white

10.08
#2A4A0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2A4A0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A0B
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A0B#FFFFFF#000000##FFFFFF
##2A4A0B1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4300
Deuteranopia (green-blind)
#494112
Tritanopia (blue-blind)
#2A473E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a4a0b;
/* rgb */ color: rgb(42, 74, 11);
/* oklch */ color: oklch(37.0% 0.096 133.3);
Tailwind
colors: {
  custom: {
    50: '#677d50',
    500: '#2a4a0b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a0b;
$custom-light: #677d50;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a0b",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 11
  },
  "hsl": {
    "h": 90.476,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.37047,
    "c": 0.09594,
    "h": 133.3
  },
  "luminance": 0.05414
}

Semantic roles & 50–950 ramp

primary
#2A4A0B
secondary
#592B86
accent
#37F195
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060902
muted
#7A7B78

Preview Lab

Preview with #2A4A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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