#1F7147#1F7147

#1F7147 is a mid, moderate green. Relative luminance 0.126; OKLCH L 48.9% C 0.103 H 156.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#1F7147
RGBrgb(31, 113, 71)
HSLhsl(149, 57%, 28%)
HSVhsv(149, 73%, 44%)
CMYKcmyk(72.6%, 0%, 37.2%, 55.7%)
CIE-LABlab(42.09, -34.90, 16.44)
CIE-LCHlch(42.09, 38.58, 154.77°)
OKLaboklab(48.87% -0.0945 0.0413)
OKLCHoklch(48.87% 0.103 156.4)
XYZxyz(7.6068, 12.5556, 7.9826)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7147 #711F49
analogous
#20711F #1F7147 #1F7170
triadic
#1F7147 #471F71 #71471F
tetradic
#1F7147 #1F2071 #711F49 #71701F
square
#1F7147 #1F2071 #711F49 #71701F
split-complementary
#1F7147 #701F71 #711F20
monochromatic
#07180F #124129 #1F7147 #2CA165 #40CB84

Accessibility & contrast

On white

5.98
#1F7147 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#1F7147 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7147
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7147#FFFFFF#000000##FFFFFF
##1F71471.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706844
Deuteranopia (green-blind)
#66604A
Tritanopia (blue-blind)
#007066
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7147;
/* rgb */ color: rgb(31, 113, 71);
/* oklch */ color: oklch(48.9% 0.103 156.4);
Tailwind
colors: {
  custom: {
    50: '#679a7a',
    500: '#1f7147',
    950: '#000000',
  },
}
SCSS
$custom: #1f7147;
$custom-light: #679a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7147",
  "rgb": {
    "r": 31,
    "g": 113,
    "b": 71
  },
  "hsl": {
    "h": 149.268,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.48873,
    "c": 0.10316,
    "h": 156.4
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#1F7147
secondary
#A54777
accent
#4896E0
background
#F6F9F7
surface
#EBF2ED
border
#C6CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #1F7147

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

Preview Lab → · Contrast checker → · Palette generator →

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