#228340#228340

#228340 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.9% C 0.135 H 149.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#228340
RGBrgb(34, 131, 64)
HSLhsl(139, 59%, 32%)
HSVhsv(139, 74%, 51%)
CMYKcmyk(74%, 0%, 51.1%, 48.6%)
CIE-LABlab(48.19, -43.00, 28.29)
CIE-LCHlch(48.19, 51.47, 146.66°)
OKLaboklab(53.89% -0.1157 0.0687)
OKLCHoklch(53.89% 0.135 149.3)
XYZxyz(9.7006, 16.9417, 7.6083)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228340 #832265
analogous
#348322 #228340 #228371
triadic
#228340 #402283 #834022
tetradic
#228340 #223483 #832265 #837122
square
#228340 #223483 #832265 #837122
split-complementary
#228340 #712283 #832234
monochromatic
#092211 #155228 #228340 #2FB458 #4ED177

Accessibility & contrast

On white

4.79
#228340 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#228340 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #228340
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228340#FFFFFF#000000##FFFFFF
##2283401.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84773A
Deuteranopia (green-blind)
#796F45
Tritanopia (blue-blind)
#008073
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #228340;
/* rgb */ color: rgb(34, 131, 64);
/* oklch */ color: oklch(53.9% 0.135 149.3);
Tailwind
colors: {
  custom: {
    50: '#6ca876',
    500: '#228340',
    950: '#000000',
  },
}
SCSS
$custom: #228340;
$custom-light: #6ca876;
$custom-dark: #000000;
JSON
{
  "hex": "#228340",
  "rgb": {
    "r": 34,
    "g": 131,
    "b": 64
  },
  "hsl": {
    "h": 138.557,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53886,
    "c": 0.13458,
    "h": 149.3
  },
  "luminance": 0.16943
}

Semantic roles & 50–950 ramp

primary
#228340
secondary
#B44C94
accent
#46B2E2
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #228340

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

Preview Lab → · Contrast checker → · Palette generator →

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