#2A4828#2A4828

#2A4828 is a dark, moderate green. Relative luminance 0.053; OKLCH L 36.9% C 0.064 H 142.8°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2A4828
RGBrgb(42, 72, 40)
HSLhsl(116, 29%, 22%)
HSVhsv(116, 44%, 28%)
CMYKcmyk(41.7%, 0%, 44.4%, 71.8%)
CIE-LABlab(27.52, -18.81, 15.76)
CIE-LCHlch(27.52, 24.54, 140.04°)
OKLaboklab(36.86% -0.0513 0.039)
OKLCHoklch(36.86% 0.064 142.8)
XYZxyz(3.6551, 5.2800, 2.8336)
Luminance0.0528 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4828 #462848
analogous
#3A4828 #2A4828 #284836
triadic
#2A4828 #282A48 #48282A
tetradic
#2A4828 #283A48 #462848 #483628
square
#2A4828 #283A48 #462848 #483628
split-complementary
#2A4828 #362848 #48283A
monochromatic
#0B140B #132112 #2A4828 #416F3E #589754

Accessibility & contrast

On white

10.21
#2A4828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A4828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4828
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4828#FFFFFF#000000##FFFFFF
##2A48281.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494326
Deuteranopia (green-blind)
#45402A
Tritanopia (blue-blind)
#274640
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a4828;
/* rgb */ color: rgb(42, 72, 40);
/* oklch */ color: oklch(36.9% 0.064 142.8);
Tailwind
colors: {
  custom: {
    50: '#657b62',
    500: '#2a4828',
    950: '#000000',
  },
}
SCSS
$custom: #2a4828;
$custom-light: #657b62;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4828",
  "rgb": {
    "r": 42,
    "g": 72,
    "b": 40
  },
  "hsl": {
    "h": 116.25,
    "s": 28.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.36864,
    "c": 0.0644,
    "h": 142.8
  },
  "luminance": 0.0528
}

Semantic roles & 50–950 ramp

primary
#2A4828
secondary
#78527A
accent
#63C5BF
background
#F6F7F5
surface
#EBEEEA
border
#C6C9C6
text
#060905
muted
#7A7B79

Preview Lab

Preview with #2A4828

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

Preview Lab → · Contrast checker → · Palette generator →

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