#228F2B#228F2B

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

Color values

HEX#228F2B
RGBrgb(34, 143, 43)
HSLhsl(125, 62%, 35%)
HSVhsv(125, 76%, 56%)
CMYKcmyk(76.2%, 0%, 69.9%, 43.9%)
CIE-LABlab(52.02, -50.12, 42.89)
CIE-LCHlch(52.02, 65.96, 139.45°)
OKLaboklab(56.98% -0.1356 0.0985)
OKLCHoklch(56.98% 0.168 144)
XYZxyz(10.9175, 20.1582, 5.6006)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#228F2B #8F2286
analogous
#508F22 #228F2B #228F62
triadic
#228F2B #2B228F #8F2B22
tetradic
#228F2B #22508F #8F2286 #8F6222
square
#228F2B #22508F #8F2286 #8F6222
split-complementary
#228F2B #62228F #8F2250
monochromatic
#0A2C0D #165E1C #228F2B #2EC03A #55D760

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##228F2B#FFFFFF#000000##000000
##228F2B1.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)
#92811D
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #228f2b;
/* rgb */ color: rgb(34, 143, 43);
/* oklch */ color: oklch(57.0% 0.168 144.0);
Tailwind
colors: {
  custom: {
    50: '#70b16a',
    500: '#228f2b',
    950: '#000000',
  },
}
SCSS
$custom: #228f2b;
$custom-light: #70b16a;
$custom-dark: #000000;
JSON
{
  "hex": "#228f2b",
  "rgb": {
    "r": 34,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 124.954,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.56983,
    "c": 0.16764,
    "h": 144
  },
  "luminance": 0.20159
}

Semantic roles & 50–950 ramp

primary
#228F2B
secondary
#BA52B2
accent
#43D7E5
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #228F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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