#228F2D#228F2D

#228F2D is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.166 H 144.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#228F2D
RGBrgb(34, 143, 45)
HSLhsl(126, 62%, 35%)
HSVhsv(126, 76%, 56%)
CMYKcmyk(76.2%, 0%, 68.5%, 43.9%)
CIE-LABlab(52.03, -49.91, 42.05)
CIE-LCHlch(52.03, 65.27, 139.89°)
OKLaboklab(57% -0.135 0.097)
OKLCHoklch(57% 0.166 144.3)
XYZxyz(10.9551, 20.1732, 5.7986)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F2D #8F2284
analogous
#4E8F22 #228F2D #228F64
triadic
#228F2D #2D228F #8F2D22
tetradic
#228F2D #224E8F #8F2284 #8F6422
square
#228F2D #224E8F #8F2284 #8F6422
split-complementary
#228F2D #64228F #8F224E
monochromatic
#0A2C0E #165E1D #228F2D #2EC03D #55D762

Accessibility & contrast

On white

4.17
#228F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#228F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #228F2D
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##228F2D#FFFFFF#000000##000000
##228F2D1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928120
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f2d;
/* rgb */ color: rgb(34, 143, 45);
/* oklch */ color: oklch(57.0% 0.166 144.3);
Tailwind
colors: {
  custom: {
    50: '#70b16b',
    500: '#228f2d',
    950: '#000000',
  },
}
SCSS
$custom: #228f2d;
$custom-light: #70b16b;
$custom-dark: #000000;
JSON
{
  "hex": "#228f2d",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 126.055,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.16622,
    "h": 144.3
  },
  "luminance": 0.20174
}

Semantic roles & 50–950 ramp

primary
#228F2D
secondary
#BA52B0
accent
#43D4E5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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