#228E1F#228E1F

#228E1F is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.6% C 0.174 H 142.6°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#228E1F
RGBrgb(34, 142, 31)
HSLhsl(118, 64%, 34%)
HSVhsv(118, 78%, 56%)
CMYKcmyk(76.1%, 0%, 78.2%, 44.3%)
CIE-LABlab(51.59, -50.83, 47.10)
CIE-LCHlch(51.59, 69.29, 137.18°)
OKLaboklab(56.6% -0.1381 0.1058)
OKLCHoklch(56.6% 0.174 142.6)
XYZxyz(10.5794, 19.7838, 4.5572)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228E1F #8B1F8E
analogous
#5A8E1F #228E1F #1F8E54
triadic
#228E1F #1F228E #8E1F22
tetradic
#228E1F #1F5A8E #8B1F8E #8E541F
square
#228E1F #1F5A8E #8B1F8E #8E541F
split-complementary
#228E1F #541F8E #8E1F5A
monochromatic
#0A2A09 #165C14 #228E1F #2EC02A #53D94F

Accessibility & contrast

On white

4.24
#228E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#228E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228E1F
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228E1F#FFFFFF#000000##000000
##228E1F1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918004
Deuteranopia (green-blind)
#85782C
Tritanopia (blue-blind)
#008A79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #228e1f;
/* rgb */ color: rgb(34, 142, 31);
/* oklch */ color: oklch(56.6% 0.174 142.6);
Tailwind
colors: {
  custom: {
    50: '#70b063',
    500: '#228e1f',
    950: '#000000',
  },
}
SCSS
$custom: #228e1f;
$custom-light: #70b063;
$custom-dark: #000000;
JSON
{
  "hex": "#228e1f",
  "rgb": {
    "r": 34,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 118.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56604,
    "c": 0.17395,
    "h": 142.6
  },
  "luminance": 0.19785
}

Semantic roles & 50–950 ramp

primary
#228E1F
secondary
#B84DBB
accent
#41E7E3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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