#227F31#227F31

#227F31 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.143 H 145.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#227F31
RGBrgb(34, 127, 49)
HSLhsl(130, 58%, 32%)
HSVhsv(130, 73%, 50%)
CMYKcmyk(73.2%, 0%, 61.4%, 50.2%)
CIE-LABlab(46.63, -43.74, 34.15)
CIE-LCHlch(46.63, 55.49, 142.02°)
OKLaboklab(52.54% -0.1181 0.0806)
OKLCHoklch(52.54% 0.143 145.7)
XYZxyz(8.8028, 15.7396, 5.4793)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F31 #7F2270
analogous
#427F22 #227F31 #227F60
triadic
#227F31 #31227F #7F3122
tetradic
#227F31 #22427F #7F2270 #7F6022
square
#227F31 #22427F #7F2270 #7F6022
split-complementary
#227F31 #60227F #7F2242
monochromatic
#081E0C #154F1E #227F31 #2FAF44 #4CCF61

Accessibility & contrast

On white

5.06
#227F31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#227F31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F31
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F31#FFFFFF#000000##FFFFFF
##227F311.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817329
Deuteranopia (green-blind)
#766C37
Tritanopia (blue-blind)
#007C6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227f31;
/* rgb */ color: rgb(34, 127, 49);
/* oklch */ color: oklch(52.5% 0.143 145.7);
Tailwind
colors: {
  custom: {
    50: '#6ca56c',
    500: '#227f31',
    950: '#000000',
  },
}
SCSS
$custom: #227f31;
$custom-light: #6ca56c;
$custom-dark: #000000;
JSON
{
  "hex": "#227f31",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 49
  },
  "hsl": {
    "h": 129.677,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52537,
    "c": 0.14294,
    "h": 145.7
  },
  "luminance": 0.15741
}

Semantic roles & 50–950 ramp

primary
#227F31
secondary
#B24BA1
accent
#47C8E1
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227F31

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

Preview Lab → · Contrast checker → · Palette generator →

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