#1F6940#1F6940

#1F6940 is a mid, moderate green. Relative luminance 0.108; OKLCH L 46.4% C 0.098 H 154.9°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#1F6940
RGBrgb(31, 105, 64)
HSLhsl(147, 54%, 27%)
HSVhsv(147, 70%, 41%)
CMYKcmyk(70.5%, 0%, 39%, 58.8%)
CIE-LABlab(39.18, -32.94, 16.64)
CIE-LCHlch(39.18, 36.91, 153.19°)
OKLaboklab(46.44% -0.0891 0.0417)
OKLCHoklch(46.44% 0.098 154.9)
XYZxyz(6.5415, 10.7639, 6.5824)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6940 #691F48
analogous
#23691F #1F6940 #1F6965
triadic
#1F6940 #401F69 #69401F
tetradic
#1F6940 #1F2369 #691F48 #69651F
square
#1F6940 #1F2369 #691F48 #69651F
split-complementary
#1F6940 #651F69 #691F23
monochromatic
#07180E #113A23 #1F6940 #2D985D #3DC67A

Accessibility & contrast

On white

6.66
#1F6940 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#1F6940 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F6940
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6940#FFFFFF#000000##FFFFFF
##1F69401.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#69603D
Deuteranopia (green-blind)
#5F5A43
Tritanopia (blue-blind)
#00685F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f6940;
/* rgb */ color: rgb(31, 105, 64);
/* oklch */ color: oklch(46.4% 0.098 154.9);
Tailwind
colors: {
  custom: {
    50: '#659475',
    500: '#1f6940',
    950: '#000000',
  },
}
SCSS
$custom: #1f6940;
$custom-light: #659475;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6940",
  "rgb": {
    "r": 31,
    "g": 105,
    "b": 64
  },
  "hsl": {
    "h": 146.757,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.0984,
    "h": 154.9
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#1F6940
secondary
#9D4777
accent
#4A9CDE
background
#F6F9F7
surface
#EBF1ED
border
#C6CBC8
text
#060D08
muted
#7A7E7B

Preview Lab

Preview with #1F6940

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

Preview Lab → · Contrast checker → · Palette generator →

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