#1F8F31#1F8F31

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

Color values

HEX#1F8F31
RGBrgb(31, 143, 49)
HSLhsl(130, 64%, 34%)
HSVhsv(130, 78%, 56%)
CMYKcmyk(78.3%, 0%, 65.7%, 43.9%)
CIE-LABlab(52.01, -49.94, 40.24)
CIE-LCHlch(52.01, 64.13, 141.14°)
OKLaboklab(56.98% -0.1347 0.0936)
OKLCHoklch(56.98% 0.164 145.2)
XYZxyz(10.9411, 20.1567, 6.2191)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F31 #8F1F7D
analogous
#458F1F #1F8F31 #1F8F69
triadic
#1F8F31 #311F8F #8F311F
tetradic
#1F8F31 #1F458F #8F1F7D #8F691F
square
#1F8F31 #1F458F #8F1F7D #8F691F
split-complementary
#1F8F31 #691F8F #8F1F45
monochromatic
#092A0F #145D20 #1F8F31 #2AC142 #4FD966

Accessibility & contrast

On white

4.17
#1F8F31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8F31#FFFFFF#000000##000000
##1F8F311.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f8f31;
/* rgb */ color: rgb(31, 143, 49);
/* oklch */ color: oklch(57.0% 0.164 145.2);
Tailwind
colors: {
  custom: {
    50: '#6fb16d',
    500: '#1f8f31',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f31;
$custom-light: #6fb16d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f31",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 49
  },
  "hsl": {
    "h": 129.643,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56983,
    "c": 0.16407,
    "h": 145.2
  },
  "luminance": 0.20158
}

Semantic roles & 50–950 ramp

primary
#1F8F31
secondary
#BC4EAA
accent
#40CDE7
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8F31

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

Preview Lab → · Contrast checker → · Palette generator →

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