#1F7540#1F7540

#1F7540 is a mid, moderate green. Relative luminance 0.134; OKLCH L 49.9% C 0.116 H 151.9°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#1F7540
RGBrgb(31, 117, 64)
HSLhsl(143, 58%, 29%)
HSVhsv(143, 74%, 46%)
CMYKcmyk(73.5%, 0%, 45.3%, 54.1%)
CIE-LABlab(43.34, -38.00, 22.11)
CIE-LCHlch(43.34, 43.96, 149.81°)
OKLaboklab(49.86% -0.1024 0.0546)
OKLCHoklch(49.86% 0.116 151.9)
XYZxyz(7.8511, 13.3832, 7.0189)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7540 #751F54
analogous
#29751F #1F7540 #1F756B
triadic
#1F7540 #401F75 #75401F
tetradic
#1F7540 #1F2975 #751F54 #756B1F
square
#1F7540 #1F2975 #751F54 #756B1F
split-complementary
#1F7540 #6B1F75 #751F29
monochromatic
#06180D #124526 #1F7540 #2CA55A #42CD77

Accessibility & contrast

On white

5.71
#1F7540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#1F7540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7540
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7540#FFFFFF#000000##FFFFFF
##1F75401.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756B3C
Deuteranopia (green-blind)
#6B6344
Tritanopia (blue-blind)
#007368
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #1f7540;
/* rgb */ color: rgb(31, 117, 64);
/* oklch */ color: oklch(49.9% 0.116 151.9);
Tailwind
colors: {
  custom: {
    50: '#689e75',
    500: '#1f7540',
    950: '#000000',
  },
}
SCSS
$custom: #1f7540;
$custom-light: #689e75;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7540",
  "rgb": {
    "r": 31,
    "g": 117,
    "b": 64
  },
  "hsl": {
    "h": 143.023,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4986,
    "c": 0.11601,
    "h": 151.9
  },
  "luminance": 0.13384
}

Semantic roles & 50–950 ramp

primary
#1F7540
secondary
#A94783
accent
#46A6E1
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #1F7540

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

Preview Lab → · Contrast checker → · Palette generator →

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