#1F7F2B#1F7F2B

#1F7F2B is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.4% C 0.149 H 144.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#1F7F2B
RGBrgb(31, 127, 43)
HSLhsl(128, 61%, 31%)
HSVhsv(128, 76%, 50%)
CMYKcmyk(75.6%, 0%, 66.1%, 50.2%)
CIE-LABlab(46.50, -45.03, 36.86)
CIE-LCHlch(46.50, 58.19, 140.70°)
OKLaboklab(52.39% -0.1217 0.0858)
OKLCHoklch(52.39% 0.149 144.8)
XYZxyz(8.5899, 15.6435, 4.8518)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7F2B #7F1F73
analogous
#437F1F #1F7F2B #1F7F5B
triadic
#1F7F2B #2B1F7F #7F2B1F
tetradic
#1F7F2B #1F437F #7F1F73 #7F5B1F
square
#1F7F2B #1F437F #7F1F73 #7F5B1F
split-complementary
#1F7F2B #5B1F7F #7F1F43
monochromatic
#071D0A #134E1A #1F7F2B #2BB03C #46D258

Accessibility & contrast

On white

5.09
#1F7F2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#1F7F2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7F2B
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7F2B#FFFFFF#000000##FFFFFF
##1F7F2B1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817321
Deuteranopia (green-blind)
#766B32
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #1f7f2b;
/* rgb */ color: rgb(31, 127, 43);
/* oklch */ color: oklch(52.4% 0.149 144.8);
Tailwind
colors: {
  custom: {
    50: '#6ba568',
    500: '#1f7f2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f7f2b;
$custom-light: #6ba568;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7f2b",
  "rgb": {
    "r": 31,
    "g": 127,
    "b": 43
  },
  "hsl": {
    "h": 127.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52392,
    "c": 0.14888,
    "h": 144.8
  },
  "luminance": 0.15644
}

Semantic roles & 50–950 ramp

primary
#1F7F2B
secondary
#B248A5
accent
#44D0E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F06
muted
#7A7F7A

Preview Lab

Preview with #1F7F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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