#284A2D#284A2D

#284A2D is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.4% C 0.063 H 147.6°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#284A2D
RGBrgb(40, 74, 45)
HSLhsl(129, 30%, 22%)
HSVhsv(129, 46%, 29%)
CMYKcmyk(45.9%, 0%, 39.2%, 71%)
CIE-LABlab(28.22, -19.65, 13.56)
CIE-LCHlch(28.22, 23.88, 145.40°)
OKLaboklab(37.43% -0.0535 0.0339)
OKLCHoklch(37.43% 0.063 147.6)
XYZxyz(3.7973, 5.5379, 3.3509)
Luminance0.0554 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A2D #4A2845
analogous
#344A28 #284A2D #284A3E
triadic
#284A2D #2D284A #4A2D28
tetradic
#284A2D #28344A #4A2845 #4A3E28
square
#284A2D #28344A #4A2845 #4A3E28
split-complementary
#284A2D #3E284A #4A2834
monochromatic
#0B140C #132215 #284A2D #3D7245 #53995D

Accessibility & contrast

On white

9.96
#284A2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#284A2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A2D
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A2D#FFFFFF#000000##FFFFFF
##284A2D1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B452B
Deuteranopia (green-blind)
#46412F
Tritanopia (blue-blind)
#234943
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #284a2d;
/* rgb */ color: rgb(40, 74, 45);
/* oklch */ color: oklch(37.4% 0.063 147.6);
Tailwind
colors: {
  custom: {
    50: '#647d66',
    500: '#284a2d',
    950: '#000000',
  },
}
SCSS
$custom: #284a2d;
$custom-light: #647d66;
$custom-dark: #000000;
JSON
{
  "hex": "#284a2d",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 45
  },
  "hsl": {
    "h": 128.824,
    "s": 29.825,
    "l": 22.353
  },
  "oklch": {
    "l": 0.37432,
    "c": 0.06336,
    "h": 147.6
  },
  "luminance": 0.05538
}

Semantic roles & 50–950 ramp

primary
#284A2D
secondary
#7C5176
accent
#62B7C6
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#050906
muted
#7A7B7A

Preview Lab

Preview with #284A2D

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

Preview Lab → · Contrast checker → · Palette generator →

#284A2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva