#1F7835#1F7835

#1F7835 is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.5% C 0.131 H 147.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#1F7835
RGBrgb(31, 120, 53)
HSLhsl(135, 59%, 30%)
HSVhsv(135, 74%, 47%)
CMYKcmyk(74.2%, 0%, 55.8%, 52.9%)
CIE-LABlab(44.20, -41.08, 29.21)
CIE-LCHlch(44.20, 50.41, 144.59°)
OKLaboklab(50.53% -0.1106 0.0701)
OKLCHoklch(50.53% 0.131 147.6)
XYZxyz(7.9236, 13.9804, 5.6484)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7835 #781F62
analogous
#36781F #1F7835 #1F7861
triadic
#1F7835 #351F78 #78351F
tetradic
#1F7835 #1F3678 #781F62 #78611F
square
#1F7835 #1F3678 #781F62 #78611F
split-complementary
#1F7835 #611F78 #781F36
monochromatic
#06180B #124720 #1F7835 #2CA94A #43CE65

Accessibility & contrast

On white

5.53
#1F7835 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#1F7835 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7835
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7835#FFFFFF#000000##FFFFFF
##1F78351.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796D2F
Deuteranopia (green-blind)
#6F663A
Tritanopia (blue-blind)
#007569
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f7835;
/* rgb */ color: rgb(31, 120, 53);
/* oklch */ color: oklch(50.5% 0.131 147.6);
Tailwind
colors: {
  custom: {
    50: '#69a06e',
    500: '#1f7835',
    950: '#000000',
  },
}
SCSS
$custom: #1f7835;
$custom-light: #69a06e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7835",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 53
  },
  "hsl": {
    "h": 134.831,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50525,
    "c": 0.13098,
    "h": 147.6
  },
  "luminance": 0.13981
}

Semantic roles & 50–950 ramp

primary
#1F7835
secondary
#AB4793
accent
#46BBE2
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#070F07
muted
#7A7E7A

Preview Lab

Preview with #1F7835

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

Preview Lab → · Contrast checker → · Palette generator →

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