#227E4C#227E4C

#227E4C is a mid, moderate green. Relative luminance 0.158; OKLCH L 52.7% C 0.116 H 154.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#227E4C
RGBrgb(34, 126, 76)
HSLhsl(147, 58%, 31%)
HSVhsv(147, 73%, 49%)
CMYKcmyk(73%, 0%, 39.7%, 50.6%)
CIE-LABlab(46.69, -38.78, 19.73)
CIE-LCHlch(46.69, 43.52, 153.03°)
OKLaboklab(52.71% -0.1048 0.0493)
OKLCHoklch(52.71% 0.116 154.8)
XYZxyz(9.4242, 15.7825, 9.3857)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E4C #7E2254
analogous
#267E22 #227E4C #227E7A
triadic
#227E4C #4C227E #7E4C22
tetradic
#227E4C #22267E #7E2254 #7E7A22
square
#227E4C #22267E #7E2254 #7E7A22
split-complementary
#227E4C #7A227E #7E2226
monochromatic
#081E12 #154E2F #227E4C #2FAE69 #4CCF88

Accessibility & contrast

On white

5.05
#227E4C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#227E4C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E4C
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E4C#FFFFFF#000000##FFFFFF
##227E4C1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7449
Deuteranopia (green-blind)
#726B4F
Tritanopia (blue-blind)
#007D71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227e4c;
/* rgb */ color: rgb(34, 126, 76);
/* oklch */ color: oklch(52.7% 0.116 154.8);
Tailwind
colors: {
  custom: {
    50: '#6ba47e',
    500: '#227e4c',
    950: '#000000',
  },
}
SCSS
$custom: #227e4c;
$custom-light: #6ba47e;
$custom-dark: #000000;
JSON
{
  "hex": "#227e4c",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 76
  },
  "hsl": {
    "h": 147.391,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52714,
    "c": 0.11578,
    "h": 154.8
  },
  "luminance": 0.15784
}

Semantic roles & 50–950 ramp

primary
#227E4C
secondary
#B14B82
accent
#479BE1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #227E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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