#285F2A#285F2A

#285F2A is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.5% C 0.102 H 144.2°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#285F2A
RGBrgb(40, 95, 42)
HSLhsl(122, 41%, 26%)
HSVhsv(122, 58%, 37%)
CMYKcmyk(57.9%, 0%, 55.8%, 62.7%)
CIE-LABlab(35.60, -30.38, 24.74)
CIE-LCHlch(35.60, 39.18, 140.84°)
OKLaboklab(43.46% -0.0825 0.0594)
OKLCHoklch(43.46% 0.102 144.2)
XYZxyz(5.3849, 8.8023, 3.6053)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285F2A #5F285D
analogous
#425F28 #285F2A #285F46
triadic
#285F2A #2A285F #5F2A28
tetradic
#285F2A #28425F #5F285D #5F4628
square
#285F2A #28425F #5F285D #5F4628
split-complementary
#285F2A #46285F #5F2842
monochromatic
#09160A #163417 #285F2A #3A8A3D #4DB451

Accessibility & contrast

On white

7.61
#285F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#285F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #285F2A
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##285F2A#FFFFFF#000000##FFFFFF
##285F2A1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615725
Deuteranopia (green-blind)
#59522E
Tritanopia (blue-blind)
#1F5D53
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #285f2a;
/* rgb */ color: rgb(40, 95, 42);
/* oklch */ color: oklch(43.5% 0.102 144.2);
Tailwind
colors: {
  custom: {
    50: '#688d65',
    500: '#285f2a',
    950: '#000000',
  },
}
SCSS
$custom: #285f2a;
$custom-light: #688d65;
$custom-dark: #000000;
JSON
{
  "hex": "#285f2a",
  "rgb": {
    "r": 40,
    "g": 95,
    "b": 42
  },
  "hsl": {
    "h": 122.182,
    "s": 40.741,
    "l": 26.471
  },
  "oklch": {
    "l": 0.43456,
    "c": 0.10168,
    "h": 144.2
  },
  "luminance": 0.08803
}

Semantic roles & 50–950 ramp

primary
#285F2A
secondary
#92518F
accent
#57CCD1
background
#F6F8F6
surface
#EBF0EB
border
#C6CBC6
text
#060C05
muted
#7A7D7A

Preview Lab

Preview with #285F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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