#227840#227840

#227840 is a mid, moderate green. Relative luminance 0.141; OKLCH L 50.8% C 0.119 H 150.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#227840
RGBrgb(34, 120, 64)
HSLhsl(141, 56%, 30%)
HSVhsv(141, 72%, 47%)
CMYKcmyk(71.7%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.44, -38.67, 23.54)
CIE-LCHlch(44.44, 45.27, 148.66°)
OKLaboklab(50.79% -0.1042 0.0579)
OKLCHoklch(50.79% 0.119 150.9)
XYZxyz(8.3009, 14.1423, 7.1418)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#227840 #78225A
analogous
#2F7822 #227840 #22786B
triadic
#227840 #402278 #784022
tetradic
#227840 #222F78 #78225A #786B22
square
#227840 #222F78 #78225A #786B22
split-complementary
#227840 #6B2278 #78222F
monochromatic
#07190D #144827 #227840 #30A859 #49CB76

Accessibility & contrast

On white

5.49
#227840 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#227840 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #227840
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##227840#FFFFFF#000000##FFFFFF
##2278401.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3C
Deuteranopia (green-blind)
#6E6644
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #227840;
/* rgb */ color: rgb(34, 120, 64);
/* oklch */ color: oklch(50.8% 0.119 150.9);
Tailwind
colors: {
  custom: {
    50: '#69a075',
    500: '#227840',
    950: '#000000',
  },
}
SCSS
$custom: #227840;
$custom-light: #69a075;
$custom-dark: #000000;
JSON
{
  "hex": "#227840",
  "rgb": {
    "r": 34,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 140.93,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50789,
    "c": 0.11918,
    "h": 150.9
  },
  "luminance": 0.14143
}

Semantic roles & 50–950 ramp

primary
#227840
secondary
#AB4B89
accent
#49ABDF
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #227840

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

Preview Lab → · Contrast checker → · Palette generator →

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