#228C1F#228C1F

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

Color values

HEX#228C1F
RGBrgb(34, 140, 31)
HSLhsl(118, 64%, 34%)
HSVhsv(118, 78%, 55%)
CMYKcmyk(75.7%, 0%, 77.9%, 45.1%)
CIE-LABlab(50.91, -50.16, 46.43)
CIE-LCHlch(50.91, 68.35, 137.21°)
OKLaboklab(56.04% -0.1363 0.1044)
OKLCHoklch(56.04% 0.172 142.6)
XYZxyz(10.2845, 19.1940, 4.4589)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228C1F #891F8C
analogous
#588C1F #228C1F #1F8C52
triadic
#228C1F #1F228C #8C1F22
tetradic
#228C1F #1F588C #891F8C #8C521F
square
#228C1F #1F588C #891F8C #8C521F
split-complementary
#228C1F #521F8C #8C1F58
monochromatic
#0A2809 #165A14 #228C1F #2EBE2A #51D84E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228C1F#FFFFFF#000000##000000
##228C1F1.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)
#8F7E06
Deuteranopia (green-blind)
#83762B
Tritanopia (blue-blind)
#008877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #228c1f;
/* rgb */ color: rgb(34, 140, 31);
/* oklch */ color: oklch(56.0% 0.172 142.6);
Tailwind
colors: {
  custom: {
    50: '#70af63',
    500: '#228c1f',
    950: '#000000',
  },
}
SCSS
$custom: #228c1f;
$custom-light: #70af63;
$custom-dark: #000000;
JSON
{
  "hex": "#228c1f",
  "rgb": {
    "r": 34,
    "g": 140,
    "b": 31
  },
  "hsl": {
    "h": 118.349,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5604,
    "c": 0.17167,
    "h": 142.6
  },
  "luminance": 0.19195
}

Semantic roles & 50–950 ramp

primary
#228C1F
secondary
#B84CBB
accent
#41E7E2
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #228C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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