#1F8E2E#1F8E2E

#1F8E2E is a mid, vivid green. Relative luminance 0.198; OKLCH L 56.7% C 0.165 H 144.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#1F8E2E
RGBrgb(31, 142, 46)
HSLhsl(128, 64%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.2%, 0%, 67.6%, 44.3%)
CIE-LABlab(51.65, -49.93, 41.18)
CIE-LCHlch(51.65, 64.72, 140.49°)
OKLaboklab(56.67% -0.1348 0.0953)
OKLCHoklch(56.67% 0.165 144.7)
XYZxyz(10.7305, 19.8333, 5.8469)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E2E #8E1F7F
analogous
#488E1F #1F8E2E #1F8E66
triadic
#1F8E2E #2E1F8E #8E2E1F
tetradic
#1F8E2E #1F488E #8E1F7F #8E661F
square
#1F8E2E #1F488E #8E1F7F #8E661F
split-complementary
#1F8E2E #661F8E #8E1F48
monochromatic
#092A0D #145C1E #1F8E2E #2AC03E #4FD961

Accessibility & contrast

On white

4.23
#1F8E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#1F8E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E2E
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E2E#FFFFFF#000000##000000
##1F8E2E1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#918022
Deuteranopia (green-blind)
#847837
Tritanopia (blue-blind)
#008A7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8e2e;
/* rgb */ color: rgb(31, 142, 46);
/* oklch */ color: oklch(56.7% 0.165 144.7);
Tailwind
colors: {
  custom: {
    50: '#6fb06b',
    500: '#1f8e2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e2e;
$custom-light: #6fb06b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e2e",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 128.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.56671,
    "c": 0.16512,
    "h": 144.7
  },
  "luminance": 0.19835
}

Semantic roles & 50–950 ramp

primary
#1F8E2E
secondary
#BB4DAD
accent
#41D1E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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