#286240#286240

#286240 is a dark, moderate green. Relative luminance 0.096; OKLCH L 44.8% C 0.083 H 155.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#286240
RGBrgb(40, 98, 64)
HSLhsl(145, 42%, 27%)
HSVhsv(145, 59%, 38%)
CMYKcmyk(59.2%, 0%, 34.7%, 61.6%)
CIE-LABlab(37.03, -27.67, 13.80)
CIE-LCHlch(37.03, 30.92, 153.49°)
OKLaboklab(44.76% -0.0753 0.0348)
OKLCHoklch(44.76% 0.083 155.2)
XYZxyz(6.1677, 9.5561, 6.3690)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#286240 #62284A
analogous
#2D6228 #286240 #28625D
triadic
#286240 #402862 #624028
tetradic
#286240 #282D62 #62284A #625D28
square
#286240 #282D62 #62284A #625D28
split-complementary
#286240 #5D2862 #62282D
monochromatic
#09160E #163724 #286240 #3A8D5C #4EB779

Accessibility & contrast

On white

7.21
#286240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#286240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #286240
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##286240#FFFFFF#000000##FFFFFF
##2862401.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625B3E
Deuteranopia (green-blind)
#5A5542
Tritanopia (blue-blind)
#166159
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #286240;
/* rgb */ color: rgb(40, 98, 64);
/* oklch */ color: oklch(44.8% 0.083 155.2);
Tailwind
colors: {
  custom: {
    50: '#688f75',
    500: '#286240',
    950: '#000000',
  },
}
SCSS
$custom: #286240;
$custom-light: #688f75;
$custom-dark: #000000;
JSON
{
  "hex": "#286240",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 64
  },
  "hsl": {
    "h": 144.828,
    "s": 42.029,
    "l": 27.059
  },
  "oklch": {
    "l": 0.44757,
    "c": 0.08298,
    "h": 155.2
  },
  "luminance": 0.09557
}

Semantic roles & 50–950 ramp

primary
#286240
secondary
#955179
accent
#569FD2
background
#F6F8F7
surface
#EBF0ED
border
#C6CBC8
text
#060C08
muted
#7A7D7B

Preview Lab

Preview with #286240

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

Preview Lab → · Contrast checker → · Palette generator →

#286240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva