#1F7B45#1F7B45

#1F7B45 is a mid, moderate green. Relative luminance 0.149; OKLCH L 51.7% C 0.120 H 152.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#1F7B45
RGBrgb(31, 123, 69)
HSLhsl(145, 60%, 30%)
HSVhsv(145, 75%, 48%)
CMYKcmyk(74.8%, 0%, 43.9%, 51.8%)
CIE-LABlab(45.48, -39.47, 22.08)
CIE-LCHlch(45.48, 45.23, 150.78°)
OKLaboklab(51.66% -0.1063 0.0547)
OKLCHoklch(51.66% 0.12 152.8)
XYZxyz(8.7214, 14.8859, 8.0427)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7B45 #7B1F55
analogous
#277B1F #1F7B45 #1F7B73
triadic
#1F7B45 #451F7B #7B451F
tetradic
#1F7B45 #1F277B #7B1F55 #7B731F
square
#1F7B45 #1F277B #7B1F55 #7B731F
split-complementary
#1F7B45 #731F7B #7B1F27
monochromatic
#06190E #134A2A #1F7B45 #2BAC60 #44D07E

Accessibility & contrast

On white

5.28
#1F7B45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#1F7B45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7B45
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7B45#FFFFFF#000000##FFFFFF
##1F7B451.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B7041
Deuteranopia (green-blind)
#706949
Tritanopia (blue-blind)
#00796E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #1f7b45;
/* rgb */ color: rgb(31, 123, 69);
/* oklch */ color: oklch(51.7% 0.120 152.8);
Tailwind
colors: {
  custom: {
    50: '#69a279',
    500: '#1f7b45',
    950: '#000000',
  },
}
SCSS
$custom: #1f7b45;
$custom-light: #69a279;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7b45",
  "rgb": {
    "r": 31,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 144.783,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51656,
    "c": 0.11955,
    "h": 152.8
  },
  "luminance": 0.14887
}

Semantic roles & 50–950 ramp

primary
#1F7B45
secondary
#AE4884
accent
#45A2E3
background
#F6FAF7
surface
#ECF4ED
border
#C7CEC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7B45

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

Preview Lab → · Contrast checker → · Palette generator →

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