#1F8F45#1F8F45

#1F8F45 is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.147 H 149.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#1F8F45
RGBrgb(31, 143, 69)
HSLhsl(140, 64%, 34%)
HSVhsv(140, 78%, 56%)
CMYKcmyk(78.3%, 0%, 51.7%, 43.9%)
CIE-LABlab(52.25, -47.15, 30.69)
CIE-LCHlch(52.25, 56.26, 146.94°)
OKLaboklab(57.25% -0.1267 0.0744)
OKLCHoklch(57.25% 0.147 149.6)
XYZxyz(11.4608, 20.3645, 8.9558)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F45 #8F1F69
analogous
#318F1F #1F8F45 #1F8F7D
triadic
#1F8F45 #451F8F #8F451F
tetradic
#1F8F45 #1F318F #8F1F69 #8F7D1F
square
#1F8F45 #1F318F #8F1F69 #8F7D1F
split-complementary
#1F8F45 #7D1F8F #8F1F31
monochromatic
#092A14 #145D2D #1F8F45 #2AC15D #4FD97E

Accessibility & contrast

On white

4.14
#1F8F45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#1F8F45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F45
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F45#FFFFFF#000000##000000
##1F8F451.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90823F
Deuteranopia (green-blind)
#83794A
Tritanopia (blue-blind)
#008C7E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #1f8f45;
/* rgb */ color: rgb(31, 143, 69);
/* oklch */ color: oklch(57.3% 0.147 149.6);
Tailwind
colors: {
  custom: {
    50: '#6eb17a',
    500: '#1f8f45',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f45;
$custom-light: #6eb17a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f45",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 69
  },
  "hsl": {
    "h": 140.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57252,
    "c": 0.1469,
    "h": 149.6
  },
  "luminance": 0.20366
}

Semantic roles & 50–950 ramp

primary
#1F8F45
secondary
#BC4E97
accent
#40AFE7
background
#F7FBF7
surface
#EDF6EE
border
#C8D0C9
text
#081109
muted
#7B807B

Preview Lab

Preview with #1F8F45

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

Preview Lab → · Contrast checker → · Palette generator →

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