#2A4E18#2A4E18

#2A4E18 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.3% C 0.092 H 136.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2A4E18
RGBrgb(42, 78, 24)
HSLhsl(100, 53%, 20%)
HSVhsv(100, 69%, 31%)
CMYKcmyk(46.2%, 0%, 69.2%, 69.4%)
CIE-LABlab(29.43, -24.19, 27.18)
CIE-LCHlch(29.43, 36.39, 131.67°)
OKLaboklab(38.35% -0.0669 0.063)
OKLCHoklch(38.35% 0.092 136.8)
XYZxyz(3.8440, 6.0067, 1.8208)
Luminance0.0601 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E18 #3C184E
analogous
#454E18 #2A4E18 #184E21
triadic
#2A4E18 #182A4E #4E182A
tetradic
#2A4E18 #18454E #3C184E #4E2118
square
#2A4E18 #18454E #3C184E #4E2118
split-complementary
#2A4E18 #21184E #4E1845
monochromatic
#0D1707 #111F0A #2A4E18 #437D26 #5CAC35

Accessibility & contrast

On white

9.54
#2A4E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E18
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E18#FFFFFF#000000##FFFFFF
##2A4E181.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514712
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#284B43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4e18;
/* rgb */ color: rgb(42, 78, 24);
/* oklch */ color: oklch(38.3% 0.092 136.8);
Tailwind
colors: {
  custom: {
    50: '#678057',
    500: '#2a4e18',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e18;
$custom-light: #678057;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e18",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 24
  },
  "hsl": {
    "h": 100,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.38348,
    "c": 0.09189,
    "h": 136.8
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#2A4E18
secondary
#6D3D85
accent
#4BDCAC
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A4E18

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

Preview Lab → · Contrast checker → · Palette generator →

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