#2A5819#2A5819

#2A5819 is a dark, moderate green. Relative luminance 0.075; OKLCH L 41.3% C 0.106 H 138.4°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#2A5819
RGBrgb(42, 88, 25)
HSLhsl(104, 56%, 22%)
HSVhsv(104, 72%, 35%)
CMYKcmyk(52.3%, 0%, 71.6%, 65.5%)
CIE-LABlab(33.01, -28.77, 30.60)
CIE-LCHlch(33.01, 42.00, 133.24°)
OKLaboklab(41.29% -0.0793 0.0703)
OKLCHoklch(41.29% 0.106 138.4)
XYZxyz(4.6199, 7.5416, 2.1317)
Luminance0.0754 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5819 #471958
analogous
#495819 #2A5819 #195828
triadic
#2A5819 #192A58 #58192A
tetradic
#2A5819 #194958 #471958 #582819
square
#2A5819 #194958 #471958 #582819
split-complementary
#2A5819 #281958 #581949
monochromatic
#0B1807 #13280B #2A5819 #418827 #57B734

Accessibility & contrast

On white

8.37
#2A5819 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A5819 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5819
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5819#FFFFFF#000000##FFFFFF
##2A58191.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5011
Deuteranopia (green-blind)
#554C1E
Tritanopia (blue-blind)
#27554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a5819;
/* rgb */ color: rgb(42, 88, 25);
/* oklch */ color: oklch(41.3% 0.106 138.4);
Tailwind
colors: {
  custom: {
    50: '#688759',
    500: '#2a5819',
    950: '#000000',
  },
}
SCSS
$custom: #2a5819;
$custom-light: #688759;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5819",
  "rgb": {
    "r": 42,
    "g": 88,
    "b": 25
  },
  "hsl": {
    "h": 103.81,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.41286,
    "c": 0.10598,
    "h": 138.4
  },
  "luminance": 0.07542
}

Semantic roles & 50–950 ramp

primary
#2A5819
secondary
#793E8E
accent
#49DFB6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#060B04
muted
#7A7C79

Preview Lab

Preview with #2A5819

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

Preview Lab → · Contrast checker → · Palette generator →

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