#227E31#227E31

#227E31 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.142 H 145.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#227E31
RGBrgb(34, 126, 49)
HSLhsl(130, 58%, 31%)
HSVhsv(130, 73%, 49%)
CMYKcmyk(73%, 0%, 61.1%, 50.6%)
CIE-LABlab(46.29, -43.37, 33.75)
CIE-LCHlch(46.29, 54.95, 142.11°)
OKLaboklab(52.25% -0.117 0.0797)
OKLCHoklch(52.25% 0.142 145.7)
XYZxyz(8.6743, 15.4826, 5.4364)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E31 #7E226F
analogous
#417E22 #227E31 #227E5F
triadic
#227E31 #31227E #7E3122
tetradic
#227E31 #22417E #7E226F #7E5F22
square
#227E31 #22417E #7E226F #7E5F22
split-complementary
#227E31 #5F227E #7E2241
monochromatic
#081E0C #154E1E #227E31 #2FAE44 #4CCF61

Accessibility & contrast

On white

5.13
#227E31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#227E31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E31
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E31#FFFFFF#000000##FFFFFF
##227E311.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807229
Deuteranopia (green-blind)
#756B37
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #227e31;
/* rgb */ color: rgb(34, 126, 49);
/* oklch */ color: oklch(52.3% 0.142 145.7);
Tailwind
colors: {
  custom: {
    50: '#6ba46c',
    500: '#227e31',
    950: '#000000',
  },
}
SCSS
$custom: #227e31;
$custom-light: #6ba46c;
$custom-dark: #000000;
JSON
{
  "hex": "#227e31",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 49
  },
  "hsl": {
    "h": 129.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52253,
    "c": 0.14161,
    "h": 145.7
  },
  "luminance": 0.15484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #227E31

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

Preview Lab → · Contrast checker → · Palette generator →

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