#1F7A2E#1F7A2E

#1F7A2E is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.140 H 145.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#1F7A2E
RGBrgb(31, 122, 46)
HSLhsl(130, 59%, 30%)
HSVhsv(130, 75%, 48%)
CMYKcmyk(74.6%, 0%, 62.3%, 52.2%)
CIE-LABlab(44.81, -42.84, 33.50)
CIE-LCHlch(44.81, 54.38, 141.97°)
OKLaboklab(51% -0.1156 0.0789)
OKLCHoklch(51% 0.14 145.7)
XYZxyz(8.0172, 14.4067, 4.9425)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A2E #7A1F6B
analogous
#3E7A1F #1F7A2E #1F7A5B
triadic
#1F7A2E #2E1F7A #7A2E1F
tetradic
#1F7A2E #1F3E7A #7A1F6B #7A5B1F
square
#1F7A2E #1F3E7A #7A1F6B #7A5B1F
split-complementary
#1F7A2E #5B1F7A #7A1F3E
monochromatic
#061809 #13491C #1F7A2E #2BAB40 #44CF5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F7A2E#FFFFFF#000000##FFFFFF
##1F7A2E1.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)
#7C6E26
Deuteranopia (green-blind)
#716734
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a2e;
/* rgb */ color: rgb(31, 122, 46);
/* oklch */ color: oklch(51.0% 0.140 145.7);
Tailwind
colors: {
  custom: {
    50: '#69a169',
    500: '#1f7a2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a2e;
$custom-light: #69a169;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a2e",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 129.89,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.50999,
    "c": 0.13996,
    "h": 145.7
  },
  "luminance": 0.14408
}

Semantic roles & 50–950 ramp

primary
#1F7A2E
secondary
#AD479D
accent
#45C9E3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F06
muted
#7A7F7A

Preview Lab

Preview with #1F7A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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