#228F31#228F31

#228F31 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.163 H 144.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#228F31
RGBrgb(34, 143, 49)
HSLhsl(128, 62%, 35%)
HSVhsv(128, 76%, 56%)
CMYKcmyk(76.2%, 0%, 65.7%, 43.9%)
CIE-LABlab(52.07, -49.47, 40.32)
CIE-LCHlch(52.07, 63.82, 140.82°)
OKLaboklab(57.05% -0.1336 0.0938)
OKLCHoklch(57.05% 0.163 144.9)
XYZxyz(11.0358, 20.2055, 6.2236)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F31 #8F2280
analogous
#4A8F22 #228F31 #228F68
triadic
#228F31 #31228F #8F3122
tetradic
#228F31 #224A8F #8F2280 #8F6822
square
#228F31 #224A8F #8F2280 #8F6822
split-complementary
#228F31 #68228F #8F224A
monochromatic
#0A2C0F #165E20 #228F31 #2EC042 #55D767

Accessibility & contrast

On white

4.17
#228F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#228F31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F31
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F31#FFFFFF#000000##000000
##228F311.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918126
Deuteranopia (green-blind)
#857939
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f31;
/* rgb */ color: rgb(34, 143, 49);
/* oklch */ color: oklch(57.0% 0.163 144.9);
Tailwind
colors: {
  custom: {
    50: '#70b16d',
    500: '#228f31',
    950: '#000000',
  },
}
SCSS
$custom: #228f31;
$custom-light: #70b16d;
$custom-dark: #000000;
JSON
{
  "hex": "#228f31",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 128.257,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57045,
    "c": 0.16323,
    "h": 144.9
  },
  "luminance": 0.20207
}

Semantic roles & 50–950 ramp

primary
#228F31
secondary
#BA52AC
accent
#43CEE5
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F31

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

Preview Lab → · Contrast checker → · Palette generator →

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