#1F8F2D#1F8F2D

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

Color values

HEX#1F8F2D
RGBrgb(31, 143, 45)
HSLhsl(128, 64%, 34%)
HSVhsv(128, 78%, 56%)
CMYKcmyk(78.3%, 0%, 68.5%, 43.9%)
CIE-LABlab(51.98, -50.38, 41.98)
CIE-LCHlch(51.98, 65.58, 140.20°)
OKLaboklab(56.94% -0.1361 0.0969)
OKLCHoklch(56.94% 0.167 144.6)
XYZxyz(10.8604, 20.1244, 5.7941)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2D #8F1F81
analogous
#498F1F #1F8F2D #1F8F65
triadic
#1F8F2D #2D1F8F #8F2D1F
tetradic
#1F8F2D #1F498F #8F1F81 #8F651F
square
#1F8F2D #1F498F #8F1F81 #8F651F
split-complementary
#1F8F2D #651F8F #8F1F49
monochromatic
#092A0D #145D1D #1F8F2D #2AC13D #4FD961

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8F2D#FFFFFF#000000##000000
##1F8F2D1.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)
#928120
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2d;
/* rgb */ color: rgb(31, 143, 45);
/* oklch */ color: oklch(56.9% 0.167 144.6);
Tailwind
colors: {
  custom: {
    50: '#6fb16b',
    500: '#1f8f2d',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2d;
$custom-light: #6fb16b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2d",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 45
  },
  "hsl": {
    "h": 127.5,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56941,
    "c": 0.16705,
    "h": 144.6
  },
  "luminance": 0.20126
}

Semantic roles & 50–950 ramp

primary
#1F8F2D
secondary
#BC4EAE
accent
#40D2E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F8F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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