#1F7943#1F7943

#1F7943 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.1% C 0.119 H 152.4°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#1F7943
RGBrgb(31, 121, 67)
HSLhsl(144, 59%, 30%)
HSVhsv(144, 74%, 47%)
CMYKcmyk(74.4%, 0%, 44.6%, 52.5%)
CIE-LABlab(44.76, -39.05, 22.27)
CIE-LCHlch(44.76, 44.95, 150.30°)
OKLaboklab(51.05% -0.1052 0.055)
OKLCHoklch(51.05% 0.119 152.4)
XYZxyz(8.4148, 14.3703, 7.6394)
Luminance0.1437 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7943 #791F55
analogous
#28791F #1F7943 #1F7970
triadic
#1F7943 #431F79 #79431F
tetradic
#1F7943 #1F2879 #791F55 #79701F
square
#1F7943 #1F2879 #791F55 #79701F
split-complementary
#1F7943 #701F79 #791F28
monochromatic
#06180D #134828 #1F7943 #2BAA5E #43CF7B

Accessibility & contrast

On white

5.42
#1F7943 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#1F7943 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7943
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7943#FFFFFF#000000##FFFFFF
##1F79431.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F3F
Deuteranopia (green-blind)
#6E6747
Tritanopia (blue-blind)
#00776C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7943;
/* rgb */ color: rgb(31, 121, 67);
/* oklch */ color: oklch(51.1% 0.119 152.4);
Tailwind
colors: {
  custom: {
    50: '#68a078',
    500: '#1f7943',
    950: '#000000',
  },
}
SCSS
$custom: #1f7943;
$custom-light: #68a078;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7943",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 67
  },
  "hsl": {
    "h": 144,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51052,
    "c": 0.11871,
    "h": 152.4
  },
  "luminance": 0.14371
}

Semantic roles & 50–950 ramp

primary
#1F7943
secondary
#AC4784
accent
#45A4E2
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7943

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

Preview Lab → · Contrast checker → · Palette generator →

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