#2A5019#2A5019

#2A5019 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.9% C 0.094 H 137.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#2A5019
RGBrgb(42, 80, 25)
HSLhsl(101, 52%, 21%)
HSVhsv(101, 69%, 31%)
CMYKcmyk(47.5%, 0%, 68.8%, 68.6%)
CIE-LABlab(30.16, -25.05, 27.48)
CIE-LCHlch(30.16, 37.18, 132.35°)
OKLaboklab(38.95% -0.0692 0.0637)
OKLCHoklch(38.95% 0.094 137.4)
XYZxyz(3.9989, 6.2995, 1.9247)
Luminance0.0630 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5019 #3F1950
analogous
#455019 #2A5019 #195023
triadic
#2A5019 #192A50 #50192A
tetradic
#2A5019 #194550 #3F1950 #502319
square
#2A5019 #194550 #3F1950 #502319
split-complementary
#2A5019 #231950 #501945
monochromatic
#0C1707 #12210A #2A5019 #427F28 #5BAD36

Accessibility & contrast

On white

9.29
#2A5019 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A5019 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5019
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5019#FFFFFF#000000##FFFFFF
##2A50191.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534912
Deuteranopia (green-blind)
#4E461D
Tritanopia (blue-blind)
#284D44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a5019;
/* rgb */ color: rgb(42, 80, 25);
/* oklch */ color: oklch(38.9% 0.094 137.4);
Tailwind
colors: {
  custom: {
    50: '#678158',
    500: '#2a5019',
    950: '#000000',
  },
}
SCSS
$custom: #2a5019;
$custom-light: #678158;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5019",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 25
  },
  "hsl": {
    "h": 101.455,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.38946,
    "c": 0.09405,
    "h": 137.4
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#2A5019
secondary
#703E86
accent
#4CDCAF
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #2A5019

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

Preview Lab → · Contrast checker → · Palette generator →

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