#228F1B#228F1B

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

Color values

HEX#228F1B
RGBrgb(34, 143, 27)
HSLhsl(116, 68%, 33%)
HSVhsv(116, 81%, 56%)
CMYKcmyk(76.2%, 0%, 81.1%, 43.9%)
CIE-LABlab(51.91, -51.44, 48.73)
CIE-LCHlch(51.91, 70.86, 136.55°)
OKLaboklab(56.86% -0.1399 0.1086)
OKLCHoklch(56.86% 0.177 142.2)
XYZxyz(10.6793, 20.0629, 4.3464)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F1B #881B8F
analogous
#5C8F1B #228F1B #1B8F4E
triadic
#228F1B #1B228F #8F1B22
tetradic
#228F1B #1B5C8F #881B8F #8F4E1B
square
#228F1B #1B5C8F #881B8F #8F4E1B
split-complementary
#228F1B #4E1B8F #8F1B5C
monochromatic
#0A2808 #165C11 #228F1B #2EC225 #51DC48

Accessibility & contrast

On white

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

On black

5.01
#228F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F1B
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F1B#FFFFFF#000000##000000
##228F1B1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#928100
Deuteranopia (green-blind)
#867929
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f1b;
/* rgb */ color: rgb(34, 143, 27);
/* oklch */ color: oklch(56.9% 0.177 142.2);
Tailwind
colors: {
  custom: {
    50: '#71b162',
    500: '#228f1b',
    950: '#000000',
  },
}
SCSS
$custom: #228f1b;
$custom-light: #71b162;
$custom-dark: #000000;
JSON
{
  "hex": "#228f1b",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 116.379,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5686,
    "c": 0.17714,
    "h": 142.2
  },
  "luminance": 0.20064
}

Semantic roles & 50–950 ramp

primary
#228F1B
secondary
#B748BE
accent
#3DEBE1
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091105
muted
#7B807A

Preview Lab

Preview with #228F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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