#1F8045#1F8045

#1F8045 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.1% C 0.127 H 151.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#1F8045
RGBrgb(31, 128, 69)
HSLhsl(144, 61%, 31%)
HSVhsv(144, 76%, 50%)
CMYKcmyk(75.8%, 0%, 46.1%, 49.8%)
CIE-LABlab(47.18, -41.46, 24.29)
CIE-LCHlch(47.18, 48.05, 149.64°)
OKLaboklab(53.06% -0.1116 0.0598)
OKLCHoklch(53.06% 0.127 151.8)
XYZxyz(9.3576, 16.1582, 8.2548)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8045 #801F5A
analogous
#29801F #1F8045 #1F8075
triadic
#1F8045 #451F80 #80451F
tetradic
#1F8045 #1F2980 #801F5A #80751F
square
#1F8045 #1F2980 #801F5A #80751F
split-complementary
#1F8045 #751F80 #801F29
monochromatic
#071D10 #134F2A #1F8045 #2BB160 #47D27E

Accessibility & contrast

On white

4.96
#1F8045 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#1F8045 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8045
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8045#FFFFFF#000000##FFFFFF
##1F80451.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807541
Deuteranopia (green-blind)
#756D49
Tritanopia (blue-blind)
#007E72
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f8045;
/* rgb */ color: rgb(31, 128, 69);
/* oklch */ color: oklch(53.1% 0.127 151.8);
Tailwind
colors: {
  custom: {
    50: '#6aa679',
    500: '#1f8045',
    950: '#000000',
  },
}
SCSS
$custom: #1f8045;
$custom-light: #6aa679;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8045",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 69
  },
  "hsl": {
    "h": 143.505,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53063,
    "c": 0.12658,
    "h": 151.8
  },
  "luminance": 0.16159
}

Semantic roles & 50–950 ramp

primary
#1F8045
secondary
#B34889
accent
#44A5E4
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F8045

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

Preview Lab → · Contrast checker → · Palette generator →

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