#228F1F#228F1F

#228F1F is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.175 H 142.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#228F1F
RGBrgb(34, 143, 31)
HSLhsl(118, 64%, 34%)
HSVhsv(118, 78%, 56%)
CMYKcmyk(76.2%, 0%, 78.3%, 43.9%)
CIE-LABlab(51.93, -51.16, 47.43)
CIE-LCHlch(51.93, 69.76, 137.17°)
OKLaboklab(56.89% -0.139 0.1064)
OKLCHoklch(56.89% 0.175 142.6)
XYZxyz(10.7288, 20.0827, 4.6070)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F1F #8C1F8F
analogous
#5A8F1F #228F1F #1F8F54
triadic
#228F1F #1F228F #8F1F22
tetradic
#228F1F #1F5A8F #8C1F8F #8F541F
square
#228F1F #1F5A8F #8C1F8F #8F541F
split-complementary
#228F1F #541F8F #8F1F5A
monochromatic
#0A2A09 #165D14 #228F1F #2EC12A #53D94F

Accessibility & contrast

On white

4.19
#228F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#228F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F1F
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F1F#FFFFFF#000000##000000
##228F1F1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#86792C
Tritanopia (blue-blind)
#008B7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f1f;
/* rgb */ color: rgb(34, 143, 31);
/* oklch */ color: oklch(56.9% 0.175 142.6);
Tailwind
colors: {
  custom: {
    50: '#71b163',
    500: '#228f1f',
    950: '#000000',
  },
}
SCSS
$custom: #228f1f;
$custom-light: #71b163;
$custom-dark: #000000;
JSON
{
  "hex": "#228f1f",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 118.393,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56885,
    "c": 0.17509,
    "h": 142.6
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

primary
#228F1F
secondary
#B94EBC
accent
#40E7E3
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091106
muted
#7B807A

Preview Lab

Preview with #228F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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