#2A4D0F#2A4D0F

#2A4D0F is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.098 H 134.7°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2A4D0F
RGBrgb(42, 77, 15)
HSLhsl(94, 67%, 18%)
HSVhsv(94, 81%, 30%)
CMYKcmyk(45.5%, 0%, 80.5%, 69.8%)
CIE-LABlab(28.99, -24.55, 30.90)
CIE-LCHlch(28.99, 39.46, 128.46°)
OKLaboklab(37.96% -0.0686 0.0694)
OKLCHoklch(37.96% 0.098 134.7)
XYZxyz(3.6949, 5.8343, 1.3833)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D0F #320F4D
analogous
#494D0F #2A4D0F #0F4D13
triadic
#2A4D0F #0F2A4D #4D0F2A
tetradic
#2A4D0F #0F494D #320F4D #4D130F
square
#2A4D0F #0F494D #320F4D #4D130F
split-complementary
#2A4D0F #130F4D #4D0F49
monochromatic
#0E1A05 #0E1A05 #2A4D0F #468019 #62B323

Accessibility & contrast

On white

9.69
#2A4D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D0F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D0F#FFFFFF#000000##FFFFFF
##2A4D0F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504604
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#294A41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4d0f;
/* rgb */ color: rgb(42, 77, 15);
/* oklch */ color: oklch(38.0% 0.098 134.7);
Tailwind
colors: {
  custom: {
    50: '#677f52',
    500: '#2a4d0f',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d0f;
$custom-light: #677f52;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d0f",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 15
  },
  "hsl": {
    "h": 93.871,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37963,
    "c": 0.09764,
    "h": 134.7
  },
  "luminance": 0.05834
}

Semantic roles & 50–950 ramp

primary
#2A4D0F
secondary
#613187
accent
#3EEA9F
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #2A4D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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