#1F7434#1F7434

#1F7434 is a mid, vivid green. Relative luminance 0.130; OKLCH L 49.4% C 0.126 H 147.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#1F7434
RGBrgb(31, 116, 52)
HSLhsl(135, 58%, 29%)
HSVhsv(135, 73%, 45%)
CMYKcmyk(73.3%, 0%, 55.2%, 54.5%)
CIE-LABlab(42.81, -39.69, 28.04)
CIE-LCHlch(42.81, 48.60, 144.76°)
OKLaboklab(49.36% -0.1069 0.0675)
OKLCHoklch(49.36% 0.126 147.8)
XYZxyz(7.4297, 13.0292, 5.3715)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7434 #741F5F
analogous
#35741F #1F7434 #1F745F
triadic
#1F7434 #341F74 #74341F
tetradic
#1F7434 #1F3574 #741F5F #745F1F
square
#1F7434 #1F3574 #741F5F #745F1F
split-complementary
#1F7434 #5F1F74 #741F35
monochromatic
#06180B #12441E #1F7434 #2CA44A #41CC64

Accessibility & contrast

On white

5.82
#1F7434 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#1F7434 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7434
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7434#FFFFFF#000000##FFFFFF
##1F74341.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#75692E
Deuteranopia (green-blind)
#6B6239
Tritanopia (blue-blind)
#007165
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7434;
/* rgb */ color: rgb(31, 116, 52);
/* oklch */ color: oklch(49.4% 0.126 147.8);
Tailwind
colors: {
  custom: {
    50: '#689d6d',
    500: '#1f7434',
    950: '#000000',
  },
}
SCSS
$custom: #1f7434;
$custom-light: #689d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7434",
  "rgb": {
    "r": 31,
    "g": 116,
    "b": 52
  },
  "hsl": {
    "h": 134.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.49365,
    "c": 0.12642,
    "h": 147.8
  },
  "luminance": 0.1303
}

Semantic roles & 50–950 ramp

primary
#1F7434
secondary
#A84790
accent
#47BBE1
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7434

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

Preview Lab → · Contrast checker → · Palette generator →

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