#2A6018#2A6018

#2A6018 is a dark, moderate green. Relative luminance 0.089; OKLCH L 43.6% C 0.118 H 139.0°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2A6018
RGBrgb(42, 96, 24)
HSLhsl(105, 60%, 24%)
HSVhsv(105, 75%, 38%)
CMYKcmyk(56.3%, 0%, 75%, 62.4%)
CIE-LABlab(35.84, -32.38, 34.03)
CIE-LCHlch(35.84, 46.98, 133.58°)
OKLaboklab(43.61% -0.0891 0.0774)
OKLCHoklch(43.61% 0.118 139)
XYZxyz(5.3024, 8.9235, 2.3070)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A6018 #4E1860
analogous
#4E6018 #2A6018 #18602A
triadic
#2A6018 #182A60 #60182A
tetradic
#2A6018 #184E60 #4E1860 #602A18
square
#2A6018 #184E60 #4E1860 #602A18
split-complementary
#2A6018 #2A1860 #60184E
monochromatic
#0B1806 #152F0C #2A6018 #3F9124 #55C230

Accessibility & contrast

On white

7.54
#2A6018 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A6018 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A6018
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A6018#FFFFFF#000000##FFFFFF
##2A60181.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570D
Deuteranopia (green-blind)
#5C531F
Tritanopia (blue-blind)
#255D52
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a6018;
/* rgb */ color: rgb(42, 96, 24);
/* oklch */ color: oklch(43.6% 0.118 139.0);
Tailwind
colors: {
  custom: {
    50: '#6a8e5a',
    500: '#2a6018',
    950: '#000000',
  },
}
SCSS
$custom: #2a6018;
$custom-light: #6a8e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a6018",
  "rgb": {
    "r": 42,
    "g": 96,
    "b": 24
  },
  "hsl": {
    "h": 105,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43609,
    "c": 0.11805,
    "h": 139
  },
  "luminance": 0.08924
}

Semantic roles & 50–950 ramp

primary
#2A6018
secondary
#803D96
accent
#45E3BC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #2A6018

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

Preview Lab → · Contrast checker → · Palette generator →

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