#228B40#228B40

#228B40 is a mid, vivid green. Relative luminance 0.192; OKLCH L 56.1% C 0.145 H 148.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#228B40
RGBrgb(34, 139, 64)
HSLhsl(137, 61%, 34%)
HSVhsv(137, 76%, 55%)
CMYKcmyk(75.5%, 0%, 54%, 45.5%)
CIE-LABlab(50.89, -46.02, 31.63)
CIE-LCHlch(50.89, 55.84, 145.50°)
OKLaboklab(56.12% -0.1238 0.0762)
OKLCHoklch(56.12% 0.145 148.4)
XYZxyz(10.8169, 19.1742, 7.9804)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228B40 #8B226D
analogous
#398B22 #228B40 #228B75
triadic
#228B40 #40228B #8B4022
tetradic
#228B40 #22398B #8B226D #8B7522
square
#228B40 #22398B #8B226D #8B7522
split-complementary
#228B40 #75228B #8B2239
monochromatic
#0A2913 #165A29 #228B40 #2EBC57 #53D578

Accessibility & contrast

On white

4.34
#228B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#228B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228B40
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228B40#FFFFFF#000000##000000
##228B401.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E39
Deuteranopia (green-blind)
#807646
Tritanopia (blue-blind)
#00887A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228b40;
/* rgb */ color: rgb(34, 139, 64);
/* oklch */ color: oklch(56.1% 0.145 148.4);
Tailwind
colors: {
  custom: {
    50: '#6eae76',
    500: '#228b40',
    950: '#000000',
  },
}
SCSS
$custom: #228b40;
$custom-light: #6eae76;
$custom-dark: #000000;
JSON
{
  "hex": "#228b40",
  "rgb": {
    "r": 34,
    "g": 139,
    "b": 64
  },
  "hsl": {
    "h": 137.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56123,
    "c": 0.14536,
    "h": 148.4
  },
  "luminance": 0.19175
}

Semantic roles & 50–950 ramp

primary
#228B40
secondary
#B8509B
accent
#44B6E4
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #228B40

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

Preview Lab → · Contrast checker → · Palette generator →

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