#1F7941#1F7941

#1F7941 is a mid, vivid green. Relative luminance 0.143; OKLCH L 51.0% C 0.121 H 151.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#1F7941
RGBrgb(31, 121, 65)
HSLhsl(143, 59%, 30%)
HSVhsv(143, 74%, 47%)
CMYKcmyk(74.4%, 0%, 46.3%, 52.5%)
CIE-LABlab(44.73, -39.43, 23.34)
CIE-LCHlch(44.73, 45.82, 149.37°)
OKLaboklab(51.01% -0.1061 0.0575)
OKLCHoklch(51.01% 0.121 151.6)
XYZxyz(8.3559, 14.3468, 7.3288)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7941 #791F57
analogous
#2A791F #1F7941 #1F796E
triadic
#1F7941 #411F79 #79411F
tetradic
#1F7941 #1F2A79 #791F57 #796E1F
square
#1F7941 #1F2A79 #791F57 #796E1F
split-complementary
#1F7941 #6E1F79 #791F2A
monochromatic
#06180D #134827 #1F7941 #2BAA5B #43CF78

Accessibility & contrast

On white

5.43
#1F7941 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F7941
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7941#FFFFFF#000000##FFFFFF
##1F79411.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3D
Deuteranopia (green-blind)
#6F6745
Tritanopia (blue-blind)
#00776B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7941;
/* rgb */ color: rgb(31, 121, 65);
/* oklch */ color: oklch(51.0% 0.121 151.6);
Tailwind
colors: {
  custom: {
    50: '#69a076',
    500: '#1f7941',
    950: '#000000',
  },
}
SCSS
$custom: #1f7941;
$custom-light: #69a076;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7941",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 65
  },
  "hsl": {
    "h": 142.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51014,
    "c": 0.1207,
    "h": 151.6
  },
  "luminance": 0.14348
}

Semantic roles & 50–950 ramp

primary
#1F7941
secondary
#AC4786
accent
#45A7E2
background
#F6FAF7
surface
#EBF3ED
border
#C6CDC8
text
#070F08
muted
#7A7F7B

Preview Lab

Preview with #1F7941

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

Preview Lab → · Contrast checker → · Palette generator →

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