#228D31#228D31

#228D31 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.5% C 0.161 H 145.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#228D31
RGBrgb(34, 141, 49)
HSLhsl(128, 61%, 34%)
HSVhsv(128, 76%, 55%)
CMYKcmyk(75.9%, 0%, 65.2%, 44.7%)
CIE-LABlab(51.39, -48.78, 39.57)
CIE-LCHlch(51.39, 62.81, 140.95°)
OKLaboklab(56.49% -0.1317 0.0922)
OKLCHoklch(56.49% 0.161 145)
XYZxyz(10.7382, 19.6104, 6.1244)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228D31 #8D227E
analogous
#498D22 #228D31 #228D67
triadic
#228D31 #31228D #8D3122
tetradic
#228D31 #22498D #8D227E #8D6722
square
#228D31 #22498D #8D227E #8D6722
split-complementary
#228D31 #67228D #8D2249
monochromatic
#0A2A0F #165C20 #228D31 #2EBE42 #54D666

Accessibility & contrast

On white

4.27
#228D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#228D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228D31
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228D31#FFFFFF#000000##000000
##228D311.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8026
Deuteranopia (green-blind)
#837739
Tritanopia (blue-blind)
#00897A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #228d31;
/* rgb */ color: rgb(34, 141, 49);
/* oklch */ color: oklch(56.5% 0.161 145.0);
Tailwind
colors: {
  custom: {
    50: '#6faf6d',
    500: '#228d31',
    950: '#000000',
  },
}
SCSS
$custom: #228d31;
$custom-light: #6faf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#228d31",
  "rgb": {
    "r": 34,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 128.411,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.56485,
    "c": 0.16076,
    "h": 145
  },
  "luminance": 0.19612
}

Semantic roles & 50–950 ramp

primary
#228D31
secondary
#B951AB
accent
#44CEE4
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228D31

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

Preview Lab → · Contrast checker → · Palette generator →

#228D31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva