#285B2F#285B2F

#285B2F is a dark, moderate green. Relative luminance 0.081; OKLCH L 42.4% C 0.090 H 146.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#285B2F
RGBrgb(40, 91, 47)
HSLhsl(128, 39%, 26%)
HSVhsv(128, 56%, 36%)
CMYKcmyk(56%, 0%, 48.4%, 64.3%)
CIE-LABlab(34.27, -27.73, 20.24)
CIE-LCHlch(34.27, 34.34, 143.87°)
OKLaboklab(42.39% -0.0752 0.0496)
OKLCHoklch(42.39% 0.09 146.6)
XYZxyz(5.1289, 8.1381, 3.9893)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285B2F #5B2854
analogous
#3A5B28 #285B2F #285B48
triadic
#285B2F #2F285B #5B2F28
tetradic
#285B2F #283A5B #5B2854 #5B4828
square
#285B2F #283A5B #5B2854 #5B4828
split-complementary
#285B2F #48285B #5B283A
monochromatic
#09150B #153019 #285B2F #3B8645 #4DB05B

Accessibility & contrast

On white

7.99
#285B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#285B2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285B2F
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285B2F#FFFFFF#000000##FFFFFF
##285B2F1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C532C
Deuteranopia (green-blind)
#554F32
Tritanopia (blue-blind)
#1F5950
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #285b2f;
/* rgb */ color: rgb(40, 91, 47);
/* oklch */ color: oklch(42.4% 0.090 146.6);
Tailwind
colors: {
  custom: {
    50: '#678a68',
    500: '#285b2f',
    950: '#000000',
  },
}
SCSS
$custom: #285b2f;
$custom-light: #678a68;
$custom-dark: #000000;
JSON
{
  "hex": "#285b2f",
  "rgb": {
    "r": 40,
    "g": 91,
    "b": 47
  },
  "hsl": {
    "h": 128.235,
    "s": 38.931,
    "l": 25.686
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.09009,
    "h": 146.6
  },
  "luminance": 0.08139
}

Semantic roles & 50–950 ramp

primary
#285B2F
secondary
#8E5185
accent
#59BFCF
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C06
muted
#7A7D7A

Preview Lab

Preview with #285B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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