#228E2B#228E2B

#228E2B is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.7% C 0.166 H 144.0°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#228E2B
RGBrgb(34, 142, 43)
HSLhsl(125, 61%, 35%)
HSVhsv(125, 76%, 56%)
CMYKcmyk(76.1%, 0%, 69.7%, 44.3%)
CIE-LABlab(51.68, -49.78, 42.53)
CIE-LCHlch(51.68, 65.47, 139.49°)
OKLaboklab(56.7% -0.1347 0.0978)
OKLCHoklch(56.7% 0.166 144)
XYZxyz(10.7680, 19.8593, 5.5508)
Luminance0.1986 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E2B #8E2285
analogous
#4F8E22 #228E2B #228E61
triadic
#228E2B #2B228E #8E2B22
tetradic
#228E2B #224F8E #8E2285 #8E6122
square
#228E2B #224F8E #8E2285 #8E6122
split-complementary
#228E2B #61228E #8E224F
monochromatic
#0A2B0D #165D1C #228E2B #2EBF3A #54D65F

Accessibility & contrast

On white

4.22
#228E2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#228E2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E2B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E2B#FFFFFF#000000##000000
##228E2B1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801D
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e2b;
/* rgb */ color: rgb(34, 142, 43);
/* oklch */ color: oklch(56.7% 0.166 144.0);
Tailwind
colors: {
  custom: {
    50: '#70b06a',
    500: '#228e2b',
    950: '#000000',
  },
}
SCSS
$custom: #228e2b;
$custom-light: #70b06a;
$custom-dark: #000000;
JSON
{
  "hex": "#228e2b",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 125,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.56703,
    "c": 0.16644,
    "h": 144
  },
  "luminance": 0.19861
}

Semantic roles & 50–950 ramp

primary
#228E2B
secondary
#BA52B1
accent
#43D7E4
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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