#1F671B#1F671B

#1F671B is a mid, vivid green. Relative luminance 0.101; OKLCH L 45.3% C 0.130 H 142.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#1F671B
RGBrgb(31, 103, 27)
HSLhsl(117, 58%, 25%)
HSVhsv(117, 74%, 40%)
CMYKcmyk(69.9%, 0%, 73.8%, 59.6%)
CIE-LABlab(37.97, -37.91, 34.84)
CIE-LCHlch(37.97, 51.49, 137.42°)
OKLaboklab(45.27% -0.1032 0.0796)
OKLCHoklch(45.27% 0.13 142.4)
XYZxyz(5.6128, 10.0704, 2.6847)
Luminance0.1007 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F671B #631B67
analogous
#45671B #1F671B #1B673D
triadic
#1F671B #1B1F67 #671B1F
tetradic
#1F671B #1B4567 #631B67 #673D1B
square
#1F671B #1B4567 #631B67 #673D1B
split-complementary
#1F671B #3D1B67 #671B45
monochromatic
#071806 #10370E #1F671B #2E9728 #3CC834

Accessibility & contrast

On white

6.97
#1F671B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#1F671B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F671B
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F671B#FFFFFF#000000##FFFFFF
##1F671B1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695D0F
Deuteranopia (green-blind)
#615722
Tritanopia (blue-blind)
#0F6458
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f671b;
/* rgb */ color: rgb(31, 103, 27);
/* oklch */ color: oklch(45.3% 0.130 142.4);
Tailwind
colors: {
  custom: {
    50: '#66935c',
    500: '#1f671b',
    950: '#000000',
  },
}
SCSS
$custom: #1f671b;
$custom-light: #66935c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f671b",
  "rgb": {
    "r": 31,
    "g": 103,
    "b": 27
  },
  "hsl": {
    "h": 116.842,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.45272,
    "c": 0.13032,
    "h": 142.4
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#1F671B
secondary
#98429C
accent
#46E2D9
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #1F671B

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

Preview Lab → · Contrast checker → · Palette generator →

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