#2A4F18#2A4F18

#2A4F18 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.6% C 0.093 H 136.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#2A4F18
RGBrgb(42, 79, 24)
HSLhsl(100, 53%, 20%)
HSVhsv(100, 70%, 31%)
CMYKcmyk(46.8%, 0%, 69.6%, 69%)
CIE-LABlab(29.79, -24.67, 27.58)
CIE-LCHlch(29.79, 37.00, 131.82°)
OKLaboklab(38.64% -0.0682 0.0638)
OKLCHoklch(38.64% 0.093 136.9)
XYZxyz(3.9156, 6.1499, 1.8447)
Luminance0.0615 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F18 #3D184F
analogous
#454F18 #2A4F18 #184F22
triadic
#2A4F18 #182A4F #4F182A
tetradic
#2A4F18 #18454F #3D184F #4F2218
square
#2A4F18 #18454F #3D184F #4F2218
split-complementary
#2A4F18 #22184F #4F1845
monochromatic
#0C1707 #11200A #2A4F18 #437E26 #5CAD35

Accessibility & contrast

On white

9.42
#2A4F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4F18
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F18#FFFFFF#000000##FFFFFF
##2A4F181.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524811
Deuteranopia (green-blind)
#4D451C
Tritanopia (blue-blind)
#284C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4f18;
/* rgb */ color: rgb(42, 79, 24);
/* oklch */ color: oklch(38.6% 0.093 136.9);
Tailwind
colors: {
  custom: {
    50: '#678058',
    500: '#2a4f18',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f18;
$custom-light: #678058;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f18",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 100.364,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38641,
    "c": 0.09343,
    "h": 136.9
  },
  "luminance": 0.0615
}

Semantic roles & 50–950 ramp

primary
#2A4F18
secondary
#6E3D86
accent
#4BDDAD
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4F18

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

Preview Lab → · Contrast checker → · Palette generator →

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