#227E1F#227E1F

#227E1F is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.1% C 0.155 H 142.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#227E1F
RGBrgb(34, 126, 31)
HSLhsl(118, 61%, 31%)
HSVhsv(118, 75%, 49%)
CMYKcmyk(73%, 0%, 75.4%, 50.6%)
CIE-LABlab(46.12, -45.35, 41.64)
CIE-LCHlch(46.12, 61.56, 137.44°)
OKLaboklab(52.06% -0.1233 0.0944)
OKLCHoklch(52.06% 0.155 142.6)
XYZxyz(8.3674, 15.3598, 3.8198)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227E1F #7B1F7E
analogous
#517E1F #227E1F #1F7E4B
triadic
#227E1F #1F227E #7E1F22
tetradic
#227E1F #1F517E #7B1F7E #7E4B1F
square
#227E1F #1F517E #7B1F7E #7E4B1F
split-complementary
#227E1F #4B1F7E #7E1F51
monochromatic
#071C07 #154D13 #227E1F #2FAF2B #4AD146

Accessibility & contrast

On white

5.16
#227E1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#227E1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227E1F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227E1F#FFFFFF#000000##FFFFFF
##227E1F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#766A29
Tritanopia (blue-blind)
#057A6B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #227e1f;
/* rgb */ color: rgb(34, 126, 31);
/* oklch */ color: oklch(52.1% 0.155 142.6);
Tailwind
colors: {
  custom: {
    50: '#6ca461',
    500: '#227e1f',
    950: '#000000',
  },
}
SCSS
$custom: #227e1f;
$custom-light: #6ca461;
$custom-dark: #000000;
JSON
{
  "hex": "#227e1f",
  "rgb": {
    "r": 34,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 118.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52063,
    "c": 0.15524,
    "h": 142.6
  },
  "luminance": 0.15361
}

Semantic roles & 50–950 ramp

primary
#227E1F
secondary
#AE48B1
accent
#44E4DF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #227E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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