#227D31#227D31

#227D31 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.0% C 0.140 H 145.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#227D31
RGBrgb(34, 125, 49)
HSLhsl(130, 57%, 31%)
HSVhsv(130, 73%, 49%)
CMYKcmyk(72.8%, 0%, 60.8%, 51%)
CIE-LABlab(45.95, -43.00, 33.35)
CIE-LCHlch(45.95, 54.41, 142.20°)
OKLaboklab(51.97% -0.116 0.0789)
OKLCHoklch(51.97% 0.14 145.8)
XYZxyz(8.5471, 15.2281, 5.3940)
Luminance0.1523 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227D31 #7D226E
analogous
#407D22 #227D31 #227D5E
triadic
#227D31 #31227D #7D3122
tetradic
#227D31 #22407D #7D226E #7D5E22
square
#227D31 #22407D #7D226E #7D5E22
split-complementary
#227D31 #5E227D #7D2240
monochromatic
#081D0B #154D1E #227D31 #2FAD44 #4BCE61

Accessibility & contrast

On white

5.19
#227D31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#227D31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227D31
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227D31#FFFFFF#000000##FFFFFF
##227D311.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7129
Deuteranopia (green-blind)
#746A37
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227d31;
/* rgb */ color: rgb(34, 125, 49);
/* oklch */ color: oklch(52.0% 0.140 145.8);
Tailwind
colors: {
  custom: {
    50: '#6ba46c',
    500: '#227d31',
    950: '#000000',
  },
}
SCSS
$custom: #227d31;
$custom-light: #6ba46c;
$custom-dark: #000000;
JSON
{
  "hex": "#227d31",
  "rgb": {
    "r": 34,
    "g": 125,
    "b": 49
  },
  "hsl": {
    "h": 129.89,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51969,
    "c": 0.14029,
    "h": 145.8
  },
  "luminance": 0.15229
}

Semantic roles & 50–950 ramp

primary
#227D31
secondary
#B04B9F
accent
#47C7E0
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #227D31

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

Preview Lab → · Contrast checker → · Palette generator →

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