#1F7948#1F7948

#1F7948 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.2% C 0.114 H 154.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#1F7948
RGBrgb(31, 121, 72)
HSLhsl(147, 59%, 30%)
HSVhsv(147, 74%, 47%)
CMYKcmyk(74.4%, 0%, 40.5%, 52.5%)
CIE-LABlab(44.85, -38.05, 19.55)
CIE-LCHlch(44.85, 42.78, 152.80°)
OKLaboklab(51.15% -0.1027 0.0488)
OKLCHoklch(51.15% 0.114 154.6)
XYZxyz(8.5714, 14.4330, 8.4637)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7948 #791F50
analogous
#23791F #1F7948 #1F7975
triadic
#1F7948 #481F79 #79481F
tetradic
#1F7948 #1F2379 #791F50 #79751F
square
#1F7948 #1F2379 #791F50 #79751F
split-complementary
#1F7948 #751F79 #791F23
monochromatic
#06180E #13482B #1F7948 #2BAA65 #43CF83

Accessibility & contrast

On white

5.40
#1F7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#1F7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7948
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7948#FFFFFF#000000##FFFFFF
##1F79481.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#6E674B
Tritanopia (blue-blind)
#00786D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7948;
/* rgb */ color: rgb(31, 121, 72);
/* oklch */ color: oklch(51.2% 0.114 154.6);
Tailwind
colors: {
  custom: {
    50: '#68a07b',
    500: '#1f7948',
    950: '#000000',
  },
}
SCSS
$custom: #1f7948;
$custom-light: #68a07b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7948",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 147.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.11371,
    "h": 154.6
  },
  "luminance": 0.14434
}

Semantic roles & 50–950 ramp

primary
#1F7948
secondary
#AC477E
accent
#459BE2
background
#F6F9F7
surface
#EBF2EE
border
#C6CCC9
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #1F7948

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

Preview Lab → · Contrast checker → · Palette generator →

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