#1F671C#1F671C

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

Color values

HEX#1F671C
RGBrgb(31, 103, 28)
HSLhsl(118, 57%, 26%)
HSVhsv(118, 73%, 40%)
CMYKcmyk(69.9%, 0%, 72.8%, 59.6%)
CIE-LABlab(37.98, -37.81, 34.41)
CIE-LCHlch(37.98, 51.13, 137.70°)
OKLaboklab(45.28% -0.1028 0.0788)
OKLCHoklch(45.28% 0.13 142.5)
XYZxyz(5.6246, 10.0751, 2.7466)
Luminance0.1008 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F671C #641C67
analogous
#44671C #1F671C #1C673E
triadic
#1F671C #1C1F67 #671C1F
tetradic
#1F671C #1C4467 #641C67 #673E1C
square
#1F671C #1C4467 #641C67 #673E1C
split-complementary
#1F671C #3E1C67 #671C44
monochromatic
#071807 #11370F #1F671C #2D9729 #3CC736

Accessibility & contrast

On white

6.96
#1F671C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#1F671C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F671C
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F671C#FFFFFF#000000##FFFFFF
##1F671C1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f671c;
/* rgb */ color: rgb(31, 103, 28);
/* oklch */ color: oklch(45.3% 0.130 142.5);
Tailwind
colors: {
  custom: {
    50: '#66935d',
    500: '#1f671c',
    950: '#000000',
  },
}
SCSS
$custom: #1f671c;
$custom-light: #66935d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f671c",
  "rgb": {
    "r": 31,
    "g": 103,
    "b": 28
  },
  "hsl": {
    "h": 117.6,
    "s": 57.252,
    "l": 25.686
  },
  "oklch": {
    "l": 0.45282,
    "c": 0.12959,
    "h": 142.5
  },
  "luminance": 0.10076
}

Semantic roles & 50–950 ramp

primary
#1F671C
secondary
#98439C
accent
#47E1DA
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #1F671C

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

Preview Lab → · Contrast checker → · Palette generator →

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