#227B2B#227B2B

#227B2B is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.3% C 0.143 H 144.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#227B2B
RGBrgb(34, 123, 43)
HSLhsl(126, 57%, 31%)
HSVhsv(126, 72%, 48%)
CMYKcmyk(72.4%, 0%, 65%, 51.8%)
CIE-LABlab(45.19, -43.02, 35.41)
CIE-LCHlch(45.19, 55.72, 140.54°)
OKLaboklab(51.33% -0.1164 0.0827)
OKLCHoklch(51.33% 0.143 144.6)
XYZxyz(8.1782, 14.6795, 4.6875)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B2B #7B2272
analogous
#457B22 #227B2B #227B57
triadic
#227B2B #2B227B #7B2B22
tetradic
#227B2B #22457B #7B2272 #7B5722
square
#227B2B #22457B #7B2272 #7B5722
split-complementary
#227B2B #57227B #7B2245
monochromatic
#071B09 #154B1A #227B2B #2FAB3C #4ACD58

Accessibility & contrast

On white

5.34
#227B2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#227B2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B2B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B2B#FFFFFF#000000##FFFFFF
##227B2B1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F22
Deuteranopia (green-blind)
#736832
Tritanopia (blue-blind)
#02786A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b2b;
/* rgb */ color: rgb(34, 123, 43);
/* oklch */ color: oklch(51.3% 0.143 144.6);
Tailwind
colors: {
  custom: {
    50: '#6ba268',
    500: '#227b2b',
    950: '#000000',
  },
}
SCSS
$custom: #227b2b;
$custom-light: #6ba268;
$custom-dark: #000000;
JSON
{
  "hex": "#227b2b",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 43
  },
  "hsl": {
    "h": 126.067,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51325,
    "c": 0.14276,
    "h": 144.6
  },
  "luminance": 0.1468
}

Semantic roles & 50–950 ramp

primary
#227B2B
secondary
#AE4BA4
accent
#48D1E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #227B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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