#288B1F#288B1F

#288B1F is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.169 H 141.9°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#288B1F
RGBrgb(40, 139, 31)
HSLhsl(115, 64%, 33%)
HSVhsv(115, 78%, 55%)
CMYKcmyk(71.2%, 0%, 77.7%, 45.5%)
CIE-LABlab(50.70, -48.72, 46.27)
CIE-LCHlch(50.70, 67.19, 136.48°)
OKLaboklab(55.9% -0.1327 0.104)
OKLCHoklch(55.9% 0.169 141.9)
XYZxyz(10.3544, 19.0142, 4.4205)
Luminance0.1902 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#288B1F #821F8B
analogous
#5E8B1F #288B1F #1F8B4C
triadic
#288B1F #1F288B #8B1F28
tetradic
#288B1F #1F5E8B #821F8B #8B4C1F
square
#288B1F #1F5E8B #821F8B #8B4C1F
split-complementary
#288B1F #4C1F8B #8B1F5E
monochromatic
#0B2709 #1A5914 #288B1F #36BD2A #59D74D

Accessibility & contrast

On white

4.37
#288B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#288B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #288B1F
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##288B1F#FFFFFF#000000##000000
##288B1F1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D06
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#0E8776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #288b1f;
/* rgb */ color: rgb(40, 139, 31);
/* oklch */ color: oklch(55.9% 0.169 141.9);
Tailwind
colors: {
  custom: {
    50: '#72ae63',
    500: '#288b1f',
    950: '#000000',
  },
}
SCSS
$custom: #288b1f;
$custom-light: #72ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#288b1f",
  "rgb": {
    "r": 40,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 115,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55903,
    "c": 0.16861,
    "h": 141.9
  },
  "luminance": 0.19015
}

Semantic roles & 50–950 ramp

primary
#288B1F
secondary
#B14CBA
accent
#41E7D9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #288B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#288B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva