#1F8540#1F8540

#1F8540 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.4% C 0.138 H 149.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#1F8540
RGBrgb(31, 133, 64)
HSLhsl(139, 62%, 32%)
HSVhsv(139, 77%, 52%)
CMYKcmyk(76.7%, 0%, 51.9%, 47.8%)
CIE-LABlab(48.80, -44.26, 29.04)
CIE-LCHlch(48.80, 52.94, 146.72°)
OKLaboklab(54.38% -0.119 0.0704)
OKLCHoklch(54.38% 0.138 149.4)
XYZxyz(9.8772, 17.4354, 7.6943)
Luminance0.1744 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8540 #851F64
analogous
#31851F #1F8540 #1F8573
triadic
#1F8540 #401F85 #85401F
tetradic
#1F8540 #1F3185 #851F64 #85731F
square
#1F8540 #1F3185 #851F64 #85731F
split-complementary
#1F8540 #731F85 #851F31
monochromatic
#082210 #135328 #1F8540 #2BB758 #4AD577

Accessibility & contrast

On white

4.68
#1F8540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#1F8540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8540
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8540#FFFFFF#000000##FFFFFF
##1F85401.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793A
Deuteranopia (green-blind)
#7A7145
Tritanopia (blue-blind)
#008275
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f8540;
/* rgb */ color: rgb(31, 133, 64);
/* oklch */ color: oklch(54.4% 0.138 149.4);
Tailwind
colors: {
  custom: {
    50: '#6ba976',
    500: '#1f8540',
    950: '#000000',
  },
}
SCSS
$custom: #1f8540;
$custom-light: #6ba976;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8540",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 64
  },
  "hsl": {
    "h": 139.412,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54379,
    "c": 0.13826,
    "h": 149.4
  },
  "luminance": 0.17437
}

Semantic roles & 50–950 ramp

primary
#1F8540
secondary
#B74993
accent
#43B1E5
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #1F8540

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

Preview Lab → · Contrast checker → · Palette generator →

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