#227F3F#227F3F

#227F3F is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.7% C 0.130 H 149.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#227F3F
RGBrgb(34, 127, 63)
HSLhsl(139, 58%, 32%)
HSVhsv(139, 73%, 50%)
CMYKcmyk(73.2%, 0%, 50.4%, 50.2%)
CIE-LABlab(46.81, -41.62, 27.11)
CIE-LCHlch(46.81, 49.67, 146.93°)
OKLaboklab(52.75% -0.112 0.066)
OKLCHoklch(52.75% 0.13 149.5)
XYZxyz(9.1455, 15.8767, 7.2842)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227F3F #7F2262
analogous
#347F22 #227F3F #227F6E
triadic
#227F3F #3F227F #7F3F22
tetradic
#227F3F #22347F #7F2262 #7F6E22
square
#227F3F #22347F #7F2262 #7F6E22
split-complementary
#227F3F #6E227F #7F2234
monochromatic
#081E0F #154F27 #227F3F #2FAF57 #4CCF75

Accessibility & contrast

On white

5.03
#227F3F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#227F3F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227F3F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227F3F#FFFFFF#000000##FFFFFF
##227F3F1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80743A
Deuteranopia (green-blind)
#756C44
Tritanopia (blue-blind)
#007D70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227f3f;
/* rgb */ color: rgb(34, 127, 63);
/* oklch */ color: oklch(52.7% 0.130 149.5);
Tailwind
colors: {
  custom: {
    50: '#6ba575',
    500: '#227f3f',
    950: '#000000',
  },
}
SCSS
$custom: #227f3f;
$custom-light: #6ba575;
$custom-dark: #000000;
JSON
{
  "hex": "#227f3f",
  "rgb": {
    "r": 34,
    "g": 127,
    "b": 63
  },
  "hsl": {
    "h": 138.71,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.13003,
    "h": 149.5
  },
  "luminance": 0.15878
}

Semantic roles & 50–950 ramp

primary
#227F3F
secondary
#B24B92
accent
#47B1E1
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #227F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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