#1F7340#1F7340

#1F7340 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.3% C 0.113 H 152.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#1F7340
RGBrgb(31, 115, 64)
HSLhsl(144, 58%, 29%)
HSVhsv(144, 73%, 45%)
CMYKcmyk(73%, 0%, 44.3%, 54.9%)
CIE-LABlab(42.65, -37.18, 21.21)
CIE-LCHlch(42.65, 42.81, 150.29°)
OKLaboklab(49.29% -0.1002 0.0525)
OKLCHoklch(49.29% 0.113 152.4)
XYZxyz(7.6206, 12.9221, 6.9421)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7340 #731F52
analogous
#28731F #1F7340 #1F736A
triadic
#1F7340 #401F73 #73401F
tetradic
#1F7340 #1F2873 #731F52 #736A1F
square
#1F7340 #1F2873 #731F52 #736A1F
split-complementary
#1F7340 #6A1F73 #731F28
monochromatic
#06180D #124325 #1F7340 #2CA35B #41CC77

Accessibility & contrast

On white

5.86
#1F7340 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#1F7340 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7340
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7340#FFFFFF#000000##FFFFFF
##1F73401.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693C
Deuteranopia (green-blind)
#696243
Tritanopia (blue-blind)
#007166
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #1f7340;
/* rgb */ color: rgb(31, 115, 64);
/* oklch */ color: oklch(49.3% 0.113 152.4);
Tailwind
colors: {
  custom: {
    50: '#679c75',
    500: '#1f7340',
    950: '#000000',
  },
}
SCSS
$custom: #1f7340;
$custom-light: #679c75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7340",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 64
  },
  "hsl": {
    "h": 143.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49292,
    "c": 0.11313,
    "h": 152.4
  },
  "luminance": 0.12923
}

Semantic roles & 50–950 ramp

primary
#1F7340
secondary
#A74781
accent
#47A4E1
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7340

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

Preview Lab → · Contrast checker → · Palette generator →

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