#1F8D24#1F8D24

#1F8D24 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.171 H 143.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F8D24
RGBrgb(31, 141, 36)
HSLhsl(123, 64%, 34%)
HSVhsv(123, 78%, 55%)
CMYKcmyk(78%, 0%, 74.5%, 44.7%)
CIE-LABlab(51.23, -50.57, 44.88)
CIE-LCHlch(51.23, 67.62, 138.41°)
OKLaboklab(56.3% -0.137 0.1018)
OKLCHoklch(56.3% 0.171 143.4)
XYZxyz(10.4077, 19.4672, 4.8778)
Luminance0.1947 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D24 #8D1F88
analogous
#518D1F #1F8D24 #1F8D5B
triadic
#1F8D24 #241F8D #8D241F
tetradic
#1F8D24 #1F518D #8D1F88 #8D5B1F
square
#1F8D24 #1F518D #8D1F88 #8D5B1F
split-complementary
#1F8D24 #5B1F8D #8D1F51
monochromatic
#09290A #145B17 #1F8D24 #2ABF31 #4ED855

Accessibility & contrast

On white

4.29
#1F8D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#1F8D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D24
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D24#FFFFFF#000000##000000
##1F8D241.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F11
Deuteranopia (green-blind)
#84772F
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d24;
/* rgb */ color: rgb(31, 141, 36);
/* oklch */ color: oklch(56.3% 0.171 143.4);
Tailwind
colors: {
  custom: {
    50: '#6faf66',
    500: '#1f8d24',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d24;
$custom-light: #6faf66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d24",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 36
  },
  "hsl": {
    "h": 122.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56297,
    "c": 0.17073,
    "h": 143.4
  },
  "luminance": 0.19468
}

Semantic roles & 50–950 ramp

primary
#1F8D24
secondary
#BB4DB6
accent
#41DFE7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #1F8D24

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

Preview Lab → · Contrast checker → · Palette generator →

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