#2A5B18#2A5B18

#2A5B18 is a dark, moderate green. Relative luminance 0.080; OKLCH L 42.2% C 0.111 H 138.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#2A5B18
RGBrgb(42, 91, 24)
HSLhsl(104, 58%, 23%)
HSVhsv(104, 74%, 36%)
CMYKcmyk(53.8%, 0%, 73.6%, 64.3%)
CIE-LABlab(34.07, -30.21, 32.18)
CIE-LCHlch(34.07, 44.14, 133.19°)
OKLaboklab(42.15% -0.0833 0.0735)
OKLCHoklch(42.15% 0.111 138.6)
XYZxyz(4.8606, 8.0400, 2.1597)
Luminance0.0804 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B18 #49185B
analogous
#4B5B18 #2A5B18 #185B28
triadic
#2A5B18 #182A5B #5B182A
tetradic
#2A5B18 #184B5B #49185B #5B2818
square
#2A5B18 #184B5B #49185B #5B2818
split-complementary
#2A5B18 #28185B #5B184B
monochromatic
#0B1806 #142B0B #2A5B18 #408B25 #57BC32

Accessibility & contrast

On white

8.05
#2A5B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2A5B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B18
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B18#FFFFFF#000000##FFFFFF
##2A5B181.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E530E
Deuteranopia (green-blind)
#584F1E
Tritanopia (blue-blind)
#26584E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a5b18;
/* rgb */ color: rgb(42, 91, 24);
/* oklch */ color: oklch(42.2% 0.111 138.6);
Tailwind
colors: {
  custom: {
    50: '#698a59',
    500: '#2a5b18',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b18;
$custom-light: #698a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b18",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 103.881,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.11108,
    "h": 138.6
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#2A5B18
secondary
#7B3D92
accent
#46E1B8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A5B18

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

Preview Lab → · Contrast checker → · Palette generator →

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