#1F7A45#1F7A45

#1F7A45 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.118 H 153.0°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#1F7A45
RGBrgb(31, 122, 69)
HSLhsl(145, 59%, 30%)
HSVhsv(145, 75%, 48%)
CMYKcmyk(74.6%, 0%, 43.4%, 52.2%)
CIE-LABlab(45.14, -39.06, 21.63)
CIE-LCHlch(45.14, 44.66, 151.02°)
OKLaboklab(51.37% -0.1053 0.0536)
OKLCHoklch(51.37% 0.118 153)
XYZxyz(8.5980, 14.6391, 8.0016)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A45 #7A1F54
analogous
#267A1F #1F7A45 #1F7A73
triadic
#1F7A45 #451F7A #7A451F
tetradic
#1F7A45 #1F267A #7A1F54 #7A731F
square
#1F7A45 #1F267A #7A1F54 #7A731F
split-complementary
#1F7A45 #731F7A #7A1F26
monochromatic
#06180E #134929 #1F7A45 #2BAB61 #44CF7E

Accessibility & contrast

On white

5.35
#1F7A45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#1F7A45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A45
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A45#FFFFFF#000000##FFFFFF
##1F7A451.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A7041
Deuteranopia (green-blind)
#6F6849
Tritanopia (blue-blind)
#00786D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #1f7a45;
/* rgb */ color: rgb(31, 122, 69);
/* oklch */ color: oklch(51.4% 0.118 153.0);
Tailwind
colors: {
  custom: {
    50: '#69a179',
    500: '#1f7a45',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a45;
$custom-light: #69a179;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a45",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 69
  },
  "hsl": {
    "h": 145.055,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51374,
    "c": 0.11813,
    "h": 153
  },
  "luminance": 0.1464
}

Semantic roles & 50–950 ramp

primary
#1F7A45
secondary
#AD4783
accent
#45A1E3
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#070F09
muted
#7A7F7B

Preview Lab

Preview with #1F7A45

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

Preview Lab → · Contrast checker → · Palette generator →

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