#1F7245#1F7245

#1F7245 is a mid, moderate green. Relative luminance 0.128; OKLCH L 49.1% C 0.107 H 155.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#1F7245
RGBrgb(31, 114, 69)
HSLhsl(147, 57%, 28%)
HSVhsv(147, 73%, 45%)
CMYKcmyk(72.8%, 0%, 39.5%, 55.3%)
CIE-LABlab(42.39, -35.75, 18.01)
CIE-LCHlch(42.39, 40.03, 153.26°)
OKLaboklab(49.11% -0.0966 0.0451)
OKLCHoklch(49.11% 0.107 155)
XYZxyz(7.6559, 12.7548, 7.6875)
Luminance0.1276 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7245 #721F4C
analogous
#22721F #1F7245 #1F726E
triadic
#1F7245 #451F72 #72451F
tetradic
#1F7245 #1F2272 #721F4C #726E1F
square
#1F7245 #1F2272 #721F4C #726E1F
split-complementary
#1F7245 #6E1F72 #721F22
monochromatic
#07180F #124228 #1F7245 #2CA262 #40CB80

Accessibility & contrast

On white

5.91
#1F7245 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#1F7245 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7245
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7245#FFFFFF#000000##FFFFFF
##1F72451.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726842
Deuteranopia (green-blind)
#676148
Tritanopia (blue-blind)
#007167
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7245;
/* rgb */ color: rgb(31, 114, 69);
/* oklch */ color: oklch(49.1% 0.107 155.0);
Tailwind
colors: {
  custom: {
    50: '#679b79',
    500: '#1f7245',
    950: '#000000',
  },
}
SCSS
$custom: #1f7245;
$custom-light: #679b79;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7245",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 69
  },
  "hsl": {
    "h": 147.47,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.49112,
    "c": 0.10662,
    "h": 155
  },
  "luminance": 0.12756
}

Semantic roles & 50–950 ramp

primary
#1F7245
secondary
#A6477A
accent
#479AE0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #1F7245

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

Preview Lab → · Contrast checker → · Palette generator →

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