#284A18#284A18

#284A18 is a dark, moderate green. Relative luminance 0.054; OKLCH L 37.1% C 0.087 H 137.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#284A18
RGBrgb(40, 74, 24)
HSLhsl(101, 51%, 19%)
HSVhsv(101, 68%, 29%)
CMYKcmyk(45.9%, 0%, 67.6%, 71%)
CIE-LABlab(27.88, -22.99, 25.43)
CIE-LCHlch(27.88, 34.28, 132.12°)
OKLaboklab(37.06% -0.0635 0.0593)
OKLCHoklch(37.06% 0.087 137)
XYZxyz(3.4886, 5.4144, 1.7252)
Luminance0.0541 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#284A18 #3A184A
analogous
#414A18 #284A18 #184A21
triadic
#284A18 #18284A #4A1828
tetradic
#284A18 #18414A #3A184A #4A2118
square
#284A18 #18414A #3A184A #4A2118
split-complementary
#284A18 #21184A #4A1841
monochromatic
#0C1707 #0F1C09 #284A18 #417827 #5AA636

Accessibility & contrast

On white

10.08
#284A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#284A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #284A18
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##284A18#FFFFFF#000000##FFFFFF
##284A181.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4412
Deuteranopia (green-blind)
#48411C
Tritanopia (blue-blind)
#26473F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #284a18;
/* rgb */ color: rgb(40, 74, 24);
/* oklch */ color: oklch(37.1% 0.087 137.0);
Tailwind
colors: {
  custom: {
    50: '#657d57',
    500: '#284a18',
    950: '#000000',
  },
}
SCSS
$custom: #284a18;
$custom-light: #657d57;
$custom-dark: #000000;
JSON
{
  "hex": "#284a18",
  "rgb": {
    "r": 40,
    "g": 74,
    "b": 24
  },
  "hsl": {
    "h": 100.8,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.37055,
    "c": 0.08687,
    "h": 137
  },
  "luminance": 0.05415
}

Semantic roles & 50–950 ramp

primary
#284A18
secondary
#6B3D81
accent
#4DDAAD
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#060903
muted
#7A7B78

Preview Lab

Preview with #284A18

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

Preview Lab → · Contrast checker → · Palette generator →

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