#1F8B22#1F8B22

#1F8B22 is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.7% C 0.170 H 143.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8B22
RGBrgb(31, 139, 34)
HSLhsl(122, 64%, 33%)
HSVhsv(122, 78%, 55%)
CMYKcmyk(77.7%, 0%, 75.5%, 45.5%)
CIE-LABlab(50.54, -50.08, 44.94)
CIE-LCHlch(50.54, 67.28, 138.09°)
OKLaboklab(55.72% -0.1358 0.1017)
OKLCHoklch(55.72% 0.17 143.2)
XYZxyz(10.0858, 18.8709, 4.6240)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B22 #8B1F88
analogous
#528B1F #1F8B22 #1F8B58
triadic
#1F8B22 #221F8B #8B221F
tetradic
#1F8B22 #1F528B #8B1F88 #8B581F
square
#1F8B22 #1F528B #8B1F88 #8B581F
split-complementary
#1F8B22 #581F8B #8B1F52
monochromatic
#09270A #145916 #1F8B22 #2ABD2E #4DD751

Accessibility & contrast

On white

4.40
#1F8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B22
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B22#FFFFFF#000000##000000
##1F8B221.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D0E
Deuteranopia (green-blind)
#82752D
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b22;
/* rgb */ color: rgb(31, 139, 34);
/* oklch */ color: oklch(55.7% 0.170 143.2);
Tailwind
colors: {
  custom: {
    50: '#6eae64',
    500: '#1f8b22',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b22;
$custom-light: #6eae64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b22",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 121.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55716,
    "c": 0.16964,
    "h": 143.2
  },
  "luminance": 0.18872
}

Semantic roles & 50–950 ramp

primary
#1F8B22
secondary
#BA4CB7
accent
#41E2E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8B22

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8B22 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva