#227540#227540

#227540 is a mid, moderate green. Relative luminance 0.134; OKLCH L 49.9% C 0.115 H 151.5°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#227540
RGBrgb(34, 117, 64)
HSLhsl(142, 55%, 30%)
HSVhsv(142, 71%, 46%)
CMYKcmyk(70.9%, 0%, 45.3%, 54.1%)
CIE-LABlab(43.41, -37.44, 22.22)
CIE-LCHlch(43.41, 43.53, 149.32°)
OKLaboklab(49.94% -0.1009 0.0548)
OKLCHoklch(49.94% 0.115 151.5)
XYZxyz(7.9457, 13.4320, 7.0234)
Luminance0.1343 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227540 #752257
analogous
#2D7522 #227540 #22756A
triadic
#227540 #402275 #754022
tetradic
#227540 #222D75 #752257 #756A22
square
#227540 #222D75 #752257 #756A22
split-complementary
#227540 #6A2275 #75222D
monochromatic
#07180D #144626 #227540 #30A45A #48CA77

Accessibility & contrast

On white

5.70
#227540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#227540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227540
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227540#FFFFFF#000000##FFFFFF
##2275401.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756B3C
Deuteranopia (green-blind)
#6B6444
Tritanopia (blue-blind)
#007368
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #227540;
/* rgb */ color: rgb(34, 117, 64);
/* oklch */ color: oklch(49.9% 0.115 151.5);
Tailwind
colors: {
  custom: {
    50: '#699d75',
    500: '#227540',
    950: '#000000',
  },
}
SCSS
$custom: #227540;
$custom-light: #699d75;
$custom-dark: #000000;
JSON
{
  "hex": "#227540",
  "rgb": {
    "r": 34,
    "g": 117,
    "b": 64
  },
  "hsl": {
    "h": 141.687,
    "s": 54.967,
    "l": 29.608
  },
  "oklch": {
    "l": 0.4994,
    "c": 0.11486,
    "h": 151.5
  },
  "luminance": 0.13433
}

Semantic roles & 50–950 ramp

primary
#227540
secondary
#A84B86
accent
#49A9DE
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #227540

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

Preview Lab → · Contrast checker → · Palette generator →

#227540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva