#227C31#227C31

#227C31 is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.139 H 145.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#227C31
RGBrgb(34, 124, 49)
HSLhsl(130, 57%, 31%)
HSVhsv(130, 73%, 49%)
CMYKcmyk(72.6%, 0%, 60.5%, 51.4%)
CIE-LABlab(45.60, -42.62, 32.95)
CIE-LCHlch(45.60, 53.87, 142.30°)
OKLaboklab(51.69% -0.115 0.078)
OKLCHoklch(51.69% 0.139 145.9)
XYZxyz(8.4211, 14.9762, 5.3520)
Luminance0.1498 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227C31 #7C226D
analogous
#407C22 #227C31 #227C5E
triadic
#227C31 #31227C #7C3122
tetradic
#227C31 #22407C #7C226D #7C5E22
square
#227C31 #22407C #7C226D #7C5E22
split-complementary
#227C31 #5E227C #7C2240
monochromatic
#081C0B #154C1E #227C31 #2FAC44 #4BCE61

Accessibility & contrast

On white

5.26
#227C31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#227C31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227C31
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227C31#FFFFFF#000000##FFFFFF
##227C311.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7029
Deuteranopia (green-blind)
#736937
Tritanopia (blue-blind)
#00796C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227c31;
/* rgb */ color: rgb(34, 124, 49);
/* oklch */ color: oklch(51.7% 0.139 145.9);
Tailwind
colors: {
  custom: {
    50: '#6ba36c',
    500: '#227c31',
    950: '#000000',
  },
}
SCSS
$custom: #227c31;
$custom-light: #6ba36c;
$custom-dark: #000000;
JSON
{
  "hex": "#227c31",
  "rgb": {
    "r": 34,
    "g": 124,
    "b": 49
  },
  "hsl": {
    "h": 130,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.51685,
    "c": 0.13897,
    "h": 145.9
  },
  "luminance": 0.14977
}

Semantic roles & 50–950 ramp

primary
#227C31
secondary
#AF4B9E
accent
#48C7E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #227C31

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

Preview Lab → · Contrast checker → · Palette generator →

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