#228B31#228B31

#228B31 is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.158 H 145.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#228B31
RGBrgb(34, 139, 49)
HSLhsl(129, 61%, 34%)
HSVhsv(129, 76%, 55%)
CMYKcmyk(75.5%, 0%, 64.7%, 45.5%)
CIE-LABlab(50.72, -48.07, 38.81)
CIE-LCHlch(50.72, 61.78, 141.09°)
OKLaboklab(55.92% -0.1298 0.0906)
OKLCHoklch(55.92% 0.158 145.1)
XYZxyz(10.4460, 19.0259, 6.0270)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B31 #8B227C
analogous
#488B22 #228B31 #228B66
triadic
#228B31 #31228B #8B3122
tetradic
#228B31 #22488B #8B227C #8B6622
square
#228B31 #22488B #8B227C #8B6622
split-complementary
#228B31 #66228B #8B2248
monochromatic
#0A290E #165A20 #228B31 #2EBC42 #53D565

Accessibility & contrast

On white

4.37
#228B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#228B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B31
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B31#FFFFFF#000000##000000
##228B311.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E26
Deuteranopia (green-blind)
#817639
Tritanopia (blue-blind)
#008778
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228b31;
/* rgb */ color: rgb(34, 139, 49);
/* oklch */ color: oklch(55.9% 0.158 145.1);
Tailwind
colors: {
  custom: {
    50: '#6fae6d',
    500: '#228b31',
    950: '#000000',
  },
}
SCSS
$custom: #228b31;
$custom-light: #6fae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#228b31",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 128.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.15828,
    "h": 145.1
  },
  "luminance": 0.19027
}

Semantic roles & 50–950 ramp

primary
#228B31
secondary
#B850AA
accent
#44CDE4
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #228B31

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

Preview Lab → · Contrast checker → · Palette generator →

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