#2A4E0B#2A4E0B

#2A4E0B is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.2% C 0.102 H 134.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2A4E0B
RGBrgb(42, 78, 11)
HSLhsl(92, 75%, 17%)
HSVhsv(92, 86%, 31%)
CMYKcmyk(46.2%, 0%, 85.9%, 69.4%)
CIE-LABlab(29.32, -25.30, 32.78)
CIE-LCHlch(29.32, 41.41, 127.67°)
OKLaboklab(38.23% -0.071 0.0727)
OKLCHoklch(38.23% 0.102 134.3)
XYZxyz(3.7396, 5.9650, 1.2709)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E0B #2F0B4E
analogous
#4B4E0B #2A4E0B #0B4E0E
triadic
#2A4E0B #0B2A4E #4E0B2A
tetradic
#2A4E0B #0B4B4E #2F0B4E #4E0E0B
square
#2A4E0B #0B4B4E #2F0B4E #4E0E0B
split-complementary
#2A4E0B #0E0B4E #4E0B4B
monochromatic
#0E1B04 #0E1B04 #2A4E0B #478413 #64B91A

Accessibility & contrast

On white

9.58
#2A4E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E0B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E0B#FFFFFF#000000##FFFFFF
##2A4E0B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514700
Deuteranopia (green-blind)
#4D4412
Tritanopia (blue-blind)
#294B42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e0b;
/* rgb */ color: rgb(42, 78, 11);
/* oklch */ color: oklch(38.2% 0.102 134.3);
Tailwind
colors: {
  custom: {
    50: '#688050',
    500: '#2a4e0b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e0b;
$custom-light: #688050;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e0b",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 11
  },
  "hsl": {
    "h": 92.239,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38228,
    "c": 0.1016,
    "h": 134.3
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#2A4E0B
secondary
#5E2B8A
accent
#36F29B
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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