#285E2F#285E2F

#285E2F is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.3% C 0.095 H 146.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#285E2F
RGBrgb(40, 94, 47)
HSLhsl(128, 40%, 26%)
HSVhsv(128, 57%, 37%)
CMYKcmyk(57.4%, 0%, 50%, 63.1%)
CIE-LABlab(35.32, -29.12, 21.58)
CIE-LCHlch(35.32, 36.25, 143.46°)
OKLaboklab(43.25% -0.0789 0.0526)
OKLCHoklch(43.25% 0.095 146.3)
XYZxyz(5.3905, 8.6613, 4.0765)
Luminance0.0866 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285E2F #5E2857
analogous
#3C5E28 #285E2F #285E4A
triadic
#285E2F #2F285E #5E2F28
tetradic
#285E2F #283C5E #5E2857 #5E4A28
square
#285E2F #283C5E #5E2857 #5E4A28
split-complementary
#285E2F #4A285E #5E283C
monochromatic
#09150B #16331A #285E2F #3A8944 #4DB35A

Accessibility & contrast

On white

7.69
#285E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#285E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285E2F
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285E2F#FFFFFF#000000##FFFFFF
##285E2F1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F562B
Deuteranopia (green-blind)
#585132
Tritanopia (blue-blind)
#1E5C53
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #285e2f;
/* rgb */ color: rgb(40, 94, 47);
/* oklch */ color: oklch(43.3% 0.095 146.3);
Tailwind
colors: {
  custom: {
    50: '#678c68',
    500: '#285e2f',
    950: '#000000',
  },
}
SCSS
$custom: #285e2f;
$custom-light: #678c68;
$custom-dark: #000000;
JSON
{
  "hex": "#285e2f",
  "rgb": {
    "r": 40,
    "g": 94,
    "b": 47
  },
  "hsl": {
    "h": 127.778,
    "s": 40.299,
    "l": 26.275
  },
  "oklch": {
    "l": 0.43253,
    "c": 0.09488,
    "h": 146.3
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#285E2F
secondary
#915188
accent
#58C1D0
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C06
muted
#7A7D7A

Preview Lab

Preview with #285E2F

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

Preview Lab → · Contrast checker → · Palette generator →

#285E2F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva