#1F8F2E#1F8F2E

#1F8F2E is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.0% C 0.166 H 144.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#1F8F2E
RGBrgb(31, 143, 46)
HSLhsl(128, 64%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.3%, 0%, 67.8%, 43.9%)
CIE-LABlab(51.99, -50.27, 41.55)
CIE-LCHlch(51.99, 65.22, 140.43°)
OKLaboklab(56.95% -0.1358 0.0961)
OKLCHoklch(56.95% 0.166 144.7)
XYZxyz(10.8799, 20.1322, 5.8967)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2E #8F1F80
analogous
#488F1F #1F8F2E #1F8F66
triadic
#1F8F2E #2E1F8F #8F2E1F
tetradic
#1F8F2E #1F488F #8F1F80 #8F661F
square
#1F8F2E #1F488F #8F1F80 #8F661F
split-complementary
#1F8F2E #661F8F #8F1F48
monochromatic
#092A0E #145D1E #1F8F2E #2AC13E #4FD962

Accessibility & contrast

On white

4.18
#1F8F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#1F8F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F2E
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F2E#FFFFFF#000000##000000
##1F8F2E1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#928121
Deuteranopia (green-blind)
#857937
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2e;
/* rgb */ color: rgb(31, 143, 46);
/* oklch */ color: oklch(57.0% 0.166 144.7);
Tailwind
colors: {
  custom: {
    50: '#6fb16b',
    500: '#1f8f2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2e;
$custom-light: #6fb16b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2e",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 128.036,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56951,
    "c": 0.16632,
    "h": 144.7
  },
  "luminance": 0.20133
}

Semantic roles & 50–950 ramp

primary
#1F8F2E
secondary
#BC4EAD
accent
#40D1E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F8F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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