#284F2D#284F2D

#284F2D is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.9% C 0.072 H 146.9°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#284F2D
RGBrgb(40, 79, 45)
HSLhsl(128, 33%, 23%)
HSVhsv(128, 49%, 31%)
CMYKcmyk(49.4%, 0%, 43%, 69%)
CIE-LABlab(29.99, -22.25, 15.91)
CIE-LCHlch(29.99, 27.35, 144.44°)
OKLaboklab(38.88% -0.0605 0.0395)
OKLCHoklch(38.88% 0.072 146.9)
XYZxyz(4.1445, 6.2323, 3.4667)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F2D #4F284A
analogous
#364F28 #284F2D #284F40
triadic
#284F2D #2D284F #4F2D28
tetradic
#284F2D #28364F #4F284A #4F4028
square
#284F2D #28364F #4F284A #4F4028
split-complementary
#284F2D #40284F #4F2836
monochromatic
#0A140C #132616 #284F2D #3D7844 #51A05B

Accessibility & contrast

On white

9.35
#284F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#284F2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F2D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F2D#FFFFFF#000000##FFFFFF
##284F2D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50492B
Deuteranopia (green-blind)
#4A452F
Tritanopia (blue-blind)
#224D47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #284f2d;
/* rgb */ color: rgb(40, 79, 45);
/* oklch */ color: oklch(38.9% 0.072 146.9);
Tailwind
colors: {
  custom: {
    50: '#658066',
    500: '#284f2d',
    950: '#000000',
  },
}
SCSS
$custom: #284f2d;
$custom-light: #658066;
$custom-dark: #000000;
JSON
{
  "hex": "#284f2d",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 45
  },
  "hsl": {
    "h": 127.692,
    "s": 32.773,
    "l": 23.333
  },
  "oklch": {
    "l": 0.38879,
    "c": 0.07224,
    "h": 146.9
  },
  "luminance": 0.06233
}

Semantic roles & 50–950 ramp

primary
#284F2D
secondary
#82517B
accent
#5FBBC9
background
#F6F7F6
surface
#EBEEEB
border
#C6C9C6
text
#060A06
muted
#7A7C7A

Preview Lab

Preview with #284F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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