#1F7D34#1F7D34

#1F7D34 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.139 H 146.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#1F7D34
RGBrgb(31, 125, 52)
HSLhsl(133, 60%, 31%)
HSVhsv(133, 75%, 49%)
CMYKcmyk(75.2%, 0%, 58.4%, 51%)
CIE-LABlab(45.91, -43.12, 31.78)
CIE-LCHlch(45.91, 53.57, 143.61°)
OKLaboklab(51.94% -0.1162 0.0757)
OKLCHoklch(51.94% 0.139 146.9)
XYZxyz(8.5179, 15.2055, 5.7342)
Luminance0.1521 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D34 #7D1F68
analogous
#397D1F #1F7D34 #1F7D63
triadic
#1F7D34 #341F7D #7D341F
tetradic
#1F7D34 #1F397D #7D1F68 #7D631F
square
#1F7D34 #1F397D #7D1F68 #7D631F
split-complementary
#1F7D34 #631F7D #7D1F39
monochromatic
#071B0B #134C20 #1F7D34 #2BAE48 #45D165

Accessibility & contrast

On white

5.20
#1F7D34 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#1F7D34 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D34
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D34#FFFFFF#000000##FFFFFF
##1F7D341.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F712D
Deuteranopia (green-blind)
#746A3A
Tritanopia (blue-blind)
#007A6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d34;
/* rgb */ color: rgb(31, 125, 52);
/* oklch */ color: oklch(51.9% 0.139 146.9);
Tailwind
colors: {
  custom: {
    50: '#6aa46e',
    500: '#1f7d34',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d34;
$custom-light: #6aa46e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d34",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 52
  },
  "hsl": {
    "h": 133.404,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51936,
    "c": 0.13865,
    "h": 146.9
  },
  "luminance": 0.15206
}

Semantic roles & 50–950 ramp

primary
#1F7D34
secondary
#B04899
accent
#44C0E3
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7D34

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

Preview Lab → · Contrast checker → · Palette generator →

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