#227D2B#227D2B

#227D2B is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.145 H 144.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#227D2B
RGBrgb(34, 125, 43)
HSLhsl(126, 57%, 31%)
HSVhsv(126, 73%, 49%)
CMYKcmyk(72.8%, 0%, 65.6%, 51%)
CIE-LABlab(45.88, -43.76, 36.18)
CIE-LCHlch(45.88, 56.78, 140.41°)
OKLaboklab(51.9% -0.1184 0.0844)
OKLCHoklch(51.9% 0.145 144.5)
XYZxyz(8.4288, 15.1808, 4.7710)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D2B #7D2274
analogous
#467D22 #227D2B #227D58
triadic
#227D2B #2B227D #7D2B22
tetradic
#227D2B #22467D #7D2274 #7D5822
square
#227D2B #22467D #7D2274 #7D5822
split-complementary
#227D2B #58227D #7D2246
monochromatic
#081D0A #154D1A #227D2B #2FAD3C #4BCE58

Accessibility & contrast

On white

5.20
#227D2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#227D2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D2B
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D2B#FFFFFF#000000##FFFFFF
##227D2B1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7121
Deuteranopia (green-blind)
#756A32
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d2b;
/* rgb */ color: rgb(34, 125, 43);
/* oklch */ color: oklch(51.9% 0.145 144.5);
Tailwind
colors: {
  custom: {
    50: '#6ba468',
    500: '#227d2b',
    950: '#000000',
  },
}
SCSS
$custom: #227d2b;
$custom-light: #6ba468;
$custom-dark: #000000;
JSON
{
  "hex": "#227d2b",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 125.934,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51895,
    "c": 0.14535,
    "h": 144.5
  },
  "luminance": 0.15182
}

Semantic roles & 50–950 ramp

primary
#227D2B
secondary
#B04BA6
accent
#47D1E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #227D2B

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

Preview Lab → · Contrast checker → · Palette generator →

#227D2B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva