#284F18#284F18

#284F18 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.5% C 0.095 H 137.8°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#284F18
RGBrgb(40, 79, 24)
HSLhsl(103, 53%, 20%)
HSVhsv(103, 70%, 31%)
CMYKcmyk(49.4%, 0%, 69.6%, 69%)
CIE-LABlab(29.69, -25.41, 27.43)
CIE-LCHlch(29.69, 37.40, 132.81°)
OKLaboklab(38.53% -0.0701 0.0635)
OKLCHoklch(38.53% 0.095 137.8)
XYZxyz(3.8358, 6.1088, 1.8410)
Luminance0.0611 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284F18 #3F184F
analogous
#444F18 #284F18 #184F23
triadic
#284F18 #18284F #4F1828
tetradic
#284F18 #18444F #3F184F #4F2318
square
#284F18 #18444F #3F184F #4F2318
split-complementary
#284F18 #23184F #4F1844
monochromatic
#0C1707 #10200A #284F18 #407E26 #58AD35

Accessibility & contrast

On white

9.45
#284F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#284F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284F18
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284F18#FFFFFF#000000##FFFFFF
##284F181.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524811
Deuteranopia (green-blind)
#4C451D
Tritanopia (blue-blind)
#264C43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #284f18;
/* rgb */ color: rgb(40, 79, 24);
/* oklch */ color: oklch(38.5% 0.095 137.8);
Tailwind
colors: {
  custom: {
    50: '#668158',
    500: '#284f18',
    950: '#000000',
  },
}
SCSS
$custom: #284f18;
$custom-light: #668158;
$custom-dark: #000000;
JSON
{
  "hex": "#284f18",
  "rgb": {
    "r": 40,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 102.545,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38529,
    "c": 0.09461,
    "h": 137.8
  },
  "luminance": 0.06109
}

Semantic roles & 50–950 ramp

primary
#284F18
secondary
#713D86
accent
#4BDDB2
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #284F18

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

Preview Lab → · Contrast checker → · Palette generator →

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