#227E4F#227E4F

#227E4F is a mid, moderate green. Relative luminance 0.158; OKLCH L 52.8% C 0.113 H 156.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#227E4F
RGBrgb(34, 126, 79)
HSLhsl(149, 58%, 31%)
HSVhsv(149, 73%, 49%)
CMYKcmyk(73%, 0%, 37.3%, 50.6%)
CIE-LABlab(46.74, -38.16, 18.10)
CIE-LCHlch(46.74, 42.23, 154.62°)
OKLaboklab(52.78% -0.1033 0.0454)
OKLCHoklch(52.78% 0.113 156.2)
XYZxyz(9.5309, 15.8252, 9.9479)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E4F #7E2251
analogous
#237E22 #227E4F #227E7D
triadic
#227E4F #4F227E #7E4F22
tetradic
#227E4F #22237E #7E2251 #7E7D22
square
#227E4F #22237E #7E2251 #7E7D22
split-complementary
#227E4F #7D227E #7E2223
monochromatic
#081E13 #154E31 #227E4F #2FAE6D #4CCF8C

Accessibility & contrast

On white

5.04
#227E4F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#227E4F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E4F
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E4F#FFFFFF#000000##FFFFFF
##227E4F1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D744C
Deuteranopia (green-blind)
#726C52
Tritanopia (blue-blind)
#007D72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #227e4f;
/* rgb */ color: rgb(34, 126, 79);
/* oklch */ color: oklch(52.8% 0.113 156.2);
Tailwind
colors: {
  custom: {
    50: '#6ba480',
    500: '#227e4f',
    950: '#000000',
  },
}
SCSS
$custom: #227e4f;
$custom-light: #6ba480;
$custom-dark: #000000;
JSON
{
  "hex": "#227e4f",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 79
  },
  "hsl": {
    "h": 149.348,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52779,
    "c": 0.11283,
    "h": 156.2
  },
  "luminance": 0.15826
}

Semantic roles & 50–950 ramp

primary
#227E4F
secondary
#B14B7F
accent
#4796E1
background
#F6FAF7
surface
#ECF4EE
border
#C7CEC9
text
#070F0A
muted
#7A7F7C

Preview Lab

Preview with #227E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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