#1F8D31#1F8D31

#1F8D31 is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.4% C 0.162 H 145.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8D31
RGBrgb(31, 141, 49)
HSLhsl(130, 64%, 34%)
HSVhsv(130, 78%, 55%)
CMYKcmyk(78%, 0%, 65.2%, 44.7%)
CIE-LABlab(51.34, -49.25, 39.49)
CIE-LCHlch(51.34, 63.12, 141.28°)
OKLaboklab(56.42% -0.1328 0.092)
OKLCHoklch(56.42% 0.162 145.3)
XYZxyz(10.6436, 19.5616, 6.1199)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D31 #8D1F7B
analogous
#448D1F #1F8D31 #1F8D68
triadic
#1F8D31 #311F8D #8D311F
tetradic
#1F8D31 #1F448D #8D1F7B #8D681F
square
#1F8D31 #1F448D #8D1F7B #8D681F
split-complementary
#1F8D31 #681F8D #8D1F44
monochromatic
#09290E #145B20 #1F8D31 #2ABF42 #4ED865

Accessibility & contrast

On white

4.27
#1F8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#1F8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D31
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D31#FFFFFF#000000##000000
##1F8D311.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F8026
Deuteranopia (green-blind)
#837739
Tritanopia (blue-blind)
#00897A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d31;
/* rgb */ color: rgb(31, 141, 49);
/* oklch */ color: oklch(56.4% 0.162 145.3);
Tailwind
colors: {
  custom: {
    50: '#6eaf6d',
    500: '#1f8d31',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d31;
$custom-light: #6eaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d31",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 129.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56422,
    "c": 0.16162,
    "h": 145.3
  },
  "luminance": 0.19563
}

Semantic roles & 50–950 ramp

primary
#1F8D31
secondary
#BB4DA9
accent
#41CCE7
background
#F7FAF6
surface
#EDF5EC
border
#C8CFC7
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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