#1F7945#1F7945

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

Color values

HEX#1F7945
RGBrgb(31, 121, 69)
HSLhsl(145, 59%, 30%)
HSVhsv(145, 74%, 47%)
CMYKcmyk(74.4%, 0%, 43%, 52.5%)
CIE-LABlab(44.79, -38.66, 21.19)
CIE-LCHlch(44.79, 44.08, 151.27°)
OKLaboklab(51.09% -0.1042 0.0526)
OKLCHoklch(51.09% 0.117 153.2)
XYZxyz(8.4759, 14.3948, 7.9608)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7945 #791F53
analogous
#26791F #1F7945 #1F7972
triadic
#1F7945 #451F79 #79451F
tetradic
#1F7945 #1F2679 #791F53 #79721F
square
#1F7945 #1F2679 #791F53 #79721F
split-complementary
#1F7945 #721F79 #791F26
monochromatic
#06180E #134829 #1F7945 #2BAA61 #43CF7E

Accessibility & contrast

On white

5.41
#1F7945 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7945 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7945
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7945#FFFFFF#000000##FFFFFF
##1F79451.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f7945;
/* rgb */ color: rgb(31, 121, 69);
/* oklch */ color: oklch(51.1% 0.117 153.2);
Tailwind
colors: {
  custom: {
    50: '#68a079',
    500: '#1f7945',
    950: '#000000',
  },
}
SCSS
$custom: #1f7945;
$custom-light: #68a079;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7945",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 69
  },
  "hsl": {
    "h": 145.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51092,
    "c": 0.11671,
    "h": 153.2
  },
  "luminance": 0.14396
}

Semantic roles & 50–950 ramp

primary
#1F7945
secondary
#AC4782
accent
#45A0E2
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #1F7945

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

Preview Lab → · Contrast checker → · Palette generator →

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