#2A5F18#2A5F18

#2A5F18 is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.3% C 0.117 H 139.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2A5F18
RGBrgb(42, 95, 24)
HSLhsl(105, 60%, 23%)
HSVhsv(105, 75%, 37%)
CMYKcmyk(55.8%, 0%, 74.7%, 62.7%)
CIE-LABlab(35.48, -31.96, 33.66)
CIE-LCHlch(35.48, 46.42, 133.51°)
OKLaboklab(43.32% -0.088 0.0766)
OKLCHoklch(43.32% 0.117 139)
XYZxyz(5.2117, 8.7422, 2.2768)
Luminance0.0874 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F18 #4D185F
analogous
#4D5F18 #2A5F18 #185F29
triadic
#2A5F18 #182A5F #5F182A
tetradic
#2A5F18 #184D5F #4D185F #5F2918
square
#2A5F18 #184D5F #4D185F #5F2918
split-complementary
#2A5F18 #29185F #5F184D
monochromatic
#0B1806 #142E0C #2A5F18 #409024 #55C131

Accessibility & contrast

On white

7.64
#2A5F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2A5F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F18
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F18#FFFFFF#000000##FFFFFF
##2A5F181.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62560D
Deuteranopia (green-blind)
#5B521F
Tritanopia (blue-blind)
#255C51
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5f18;
/* rgb */ color: rgb(42, 95, 24);
/* oklch */ color: oklch(43.3% 0.117 139.0);
Tailwind
colors: {
  custom: {
    50: '#6a8d59',
    500: '#2a5f18',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f18;
$custom-light: #6a8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f18",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 104.789,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.11667,
    "h": 139
  },
  "luminance": 0.08743
}

Semantic roles & 50–950 ramp

primary
#2A5F18
secondary
#7F3D95
accent
#45E3BB
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5F18

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

Preview Lab → · Contrast checker → · Palette generator →

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