#1F8A40#1F8A40

#1F8A40 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.145 H 148.8°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8A40
RGBrgb(31, 138, 64)
HSLhsl(139, 63%, 33%)
HSVhsv(139, 78%, 54%)
CMYKcmyk(77.5%, 0%, 53.6%, 45.9%)
CIE-LABlab(50.50, -46.12, 31.13)
CIE-LCHlch(50.50, 55.64, 145.98°)
OKLaboklab(55.78% -0.124 0.0751)
OKLCHoklch(55.78% 0.145 148.8)
XYZxyz(10.5781, 18.8372, 7.9279)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A40 #8A1F69
analogous
#338A1F #1F8A40 #1F8A75
triadic
#1F8A40 #401F8A #8A401F
tetradic
#1F8A40 #1F338A #8A1F69 #8A751F
square
#1F8A40 #1F338A #8A1F69 #8A751F
split-complementary
#1F8A40 #751F8A #8A1F33
monochromatic
#092612 #145829 #1F8A40 #2ABC57 #4CD777

Accessibility & contrast

On white

4.40
#1F8A40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A40
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A40#FFFFFF#000000##000000
##1F8A401.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7D3A
Deuteranopia (green-blind)
#7F7546
Tritanopia (blue-blind)
#008779
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8a40;
/* rgb */ color: rgb(31, 138, 64);
/* oklch */ color: oklch(55.8% 0.145 148.8);
Tailwind
colors: {
  custom: {
    50: '#6dad76',
    500: '#1f8a40',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a40;
$custom-light: #6dad76;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a40",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 64
  },
  "hsl": {
    "h": 138.505,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5578,
    "c": 0.14493,
    "h": 148.8
  },
  "luminance": 0.18838
}

Semantic roles & 50–950 ramp

primary
#1F8A40
secondary
#BA4B98
accent
#41B3E6
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #1F8A40

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

Preview Lab → · Contrast checker → · Palette generator →

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