#1F8D2B#1F8D2B

#1F8D2B is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.4% C 0.166 H 144.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#1F8D2B
RGBrgb(31, 141, 43)
HSLhsl(127, 64%, 34%)
HSVhsv(127, 78%, 55%)
CMYKcmyk(78%, 0%, 69.5%, 44.7%)
CIE-LABlab(51.28, -49.91, 42.09)
CIE-LCHlch(51.28, 65.29, 139.86°)
OKLaboklab(56.36% -0.1349 0.0969)
OKLCHoklch(56.36% 0.166 144.3)
XYZxyz(10.5253, 19.5142, 5.4969)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D2B #8D1F81
analogous
#4A8D1F #1F8D2B #1F8D62
triadic
#1F8D2B #2B1F8D #8D2B1F
tetradic
#1F8D2B #1F4A8D #8D1F81 #8D621F
square
#1F8D2B #1F4A8D #8D1F81 #8D621F
split-complementary
#1F8D2B #621F8D #8D1F4A
monochromatic
#09290C #145B1C #1F8D2B #2ABF3A #4ED85D

Accessibility & contrast

On white

4.28
#1F8D2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#1F8D2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D2B
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D2B#FFFFFF#000000##000000
##1F8D2B1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1D
Deuteranopia (green-blind)
#837734
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d2b;
/* rgb */ color: rgb(31, 141, 43);
/* oklch */ color: oklch(56.4% 0.166 144.3);
Tailwind
colors: {
  custom: {
    50: '#6eaf69',
    500: '#1f8d2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d2b;
$custom-light: #6eaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d2b",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 43
  },
  "hsl": {
    "h": 126.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56359,
    "c": 0.16609,
    "h": 144.3
  },
  "luminance": 0.19515
}

Semantic roles & 50–950 ramp

primary
#1F8D2B
secondary
#BB4DAF
accent
#41D5E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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