#284D2D#284D2D

#284D2D is a dark, moderate green. Relative luminance 0.059; OKLCH L 38.3% C 0.069 H 147.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#284D2D
RGBrgb(40, 77, 45)
HSLhsl(128, 32%, 23%)
HSVhsv(128, 48%, 30%)
CMYKcmyk(48.1%, 0%, 41.6%, 69.8%)
CIE-LABlab(29.28, -21.22, 14.97)
CIE-LCHlch(29.28, 25.97, 144.80°)
OKLaboklab(38.3% -0.0577 0.0373)
OKLCHoklch(38.3% 0.069 147.2)
XYZxyz(4.0024, 5.9481, 3.4193)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284D2D #4D2848
analogous
#354D28 #284D2D #284D3F
triadic
#284D2D #2D284D #4D2D28
tetradic
#284D2D #28354D #4D2848 #4D3F28
square
#284D2D #28354D #4D2848 #4D3F28
split-complementary
#284D2D #3F284D #4D2835
monochromatic
#0A140C #132515 #284D2D #3D7545 #529E5C

Accessibility & contrast

On white

9.59
#284D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#284D2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284D2D
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284D2D#FFFFFF#000000##FFFFFF
##284D2D1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E472B
Deuteranopia (green-blind)
#48442F
Tritanopia (blue-blind)
#224B45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #284d2d;
/* rgb */ color: rgb(40, 77, 45);
/* oklch */ color: oklch(38.3% 0.069 147.2);
Tailwind
colors: {
  custom: {
    50: '#647f66',
    500: '#284d2d',
    950: '#000000',
  },
}
SCSS
$custom: #284d2d;
$custom-light: #647f66;
$custom-dark: #000000;
JSON
{
  "hex": "#284d2d",
  "rgb": {
    "r": 40,
    "g": 77,
    "b": 45
  },
  "hsl": {
    "h": 128.108,
    "s": 31.624,
    "l": 22.941
  },
  "oklch": {
    "l": 0.383,
    "c": 0.06873,
    "h": 147.2
  },
  "luminance": 0.05948
}

Semantic roles & 50–950 ramp

primary
#284D2D
secondary
#805179
accent
#60BAC8
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#050A06
muted
#7A7C7A

Preview Lab

Preview with #284D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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