#227B40#227B40

#227B40 is a mid, vivid green. Relative luminance 0.149; OKLCH L 51.6% C 0.123 H 150.4°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#227B40
RGBrgb(34, 123, 64)
HSLhsl(140, 57%, 31%)
HSVhsv(140, 72%, 48%)
CMYKcmyk(72.4%, 0%, 48%, 51.8%)
CIE-LABlab(45.46, -39.87, 24.86)
CIE-LCHlch(45.46, 46.98, 148.06°)
OKLaboklab(51.64% -0.1074 0.0609)
OKLCHoklch(51.64% 0.123 150.4)
XYZxyz(8.6674, 14.8752, 7.2639)
Luminance0.1488 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227B40 #7B225D
analogous
#307B22 #227B40 #227B6C
triadic
#227B40 #40227B #7B4022
tetradic
#227B40 #22307B #7B225D #7B6C22
square
#227B40 #22307B #7B225D #7B6C22
split-complementary
#227B40 #6C227B #7B2230
monochromatic
#071B0E #154B27 #227B40 #2FAB59 #4ACD76

Accessibility & contrast

On white

5.28
#227B40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#227B40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227B40
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227B40#FFFFFF#000000##FFFFFF
##227B401.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C703B
Deuteranopia (green-blind)
#716944
Tritanopia (blue-blind)
#00796D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #227b40;
/* rgb */ color: rgb(34, 123, 64);
/* oklch */ color: oklch(51.6% 0.123 150.4);
Tailwind
colors: {
  custom: {
    50: '#6aa276',
    500: '#227b40',
    950: '#000000',
  },
}
SCSS
$custom: #227b40;
$custom-light: #6aa276;
$custom-dark: #000000;
JSON
{
  "hex": "#227b40",
  "rgb": {
    "r": 34,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 140.225,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.51636,
    "c": 0.12344,
    "h": 150.4
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#227B40
secondary
#AE4B8C
accent
#48ADE0
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227B40

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

Preview Lab → · Contrast checker → · Palette generator →

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