#227B31#227B31

#227B31 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.4% C 0.138 H 145.9°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#227B31
RGBrgb(34, 123, 49)
HSLhsl(130, 57%, 31%)
HSVhsv(130, 72%, 48%)
CMYKcmyk(72.4%, 0%, 60.2%, 51.8%)
CIE-LABlab(45.26, -42.25, 32.54)
CIE-LCHlch(45.26, 53.33, 142.39°)
OKLaboklab(51.4% -0.114 0.0771)
OKLCHoklch(51.4% 0.138 145.9)
XYZxyz(8.2964, 14.7268, 5.3105)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B31 #7B226C
analogous
#3F7B22 #227B31 #227B5D
triadic
#227B31 #31227B #7B3122
tetradic
#227B31 #223F7B #7B226C #7B5D22
square
#227B31 #223F7B #7B226C #7B5D22
split-complementary
#227B31 #5D227B #7B223F
monochromatic
#071B0B #154B1E #227B31 #2FAB44 #4ACD60

Accessibility & contrast

On white

5.32
#227B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#227B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B31
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B31#FFFFFF#000000##FFFFFF
##227B311.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D702A
Deuteranopia (green-blind)
#726837
Tritanopia (blue-blind)
#00786B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #227b31;
/* rgb */ color: rgb(34, 123, 49);
/* oklch */ color: oklch(51.4% 0.138 145.9);
Tailwind
colors: {
  custom: {
    50: '#6ba26b',
    500: '#227b31',
    950: '#000000',
  },
}
SCSS
$custom: #227b31;
$custom-light: #6ba26b;
$custom-dark: #000000;
JSON
{
  "hex": "#227b31",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 130.112,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.514,
    "c": 0.13764,
    "h": 145.9
  },
  "luminance": 0.14728
}

Semantic roles & 50–950 ramp

primary
#227B31
secondary
#AE4B9D
accent
#48C6E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227B31

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

Preview Lab → · Contrast checker → · Palette generator →

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