#1F701B#1F701B

#1F701B is a mid, vivid green. Relative luminance 0.120; OKLCH L 47.9% C 0.142 H 142.4°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#1F701B
RGBrgb(31, 112, 27)
HSLhsl(117, 61%, 27%)
HSVhsv(117, 76%, 44%)
CMYKcmyk(72.3%, 0%, 75.9%, 56.1%)
CIE-LABlab(41.15, -41.27, 38.13)
CIE-LCHlch(41.15, 56.19, 137.26°)
OKLaboklab(47.91% -0.1123 0.0865)
OKLCHoklch(47.91% 0.142 142.4)
XYZxyz(6.5567, 11.9581, 2.9993)
Luminance0.1196 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F701B #6C1B70
analogous
#4A701B #1F701B #1B7041
triadic
#1F701B #1B1F70 #701B1F
tetradic
#1F701B #1B4A70 #6C1B70 #70411B
square
#1F701B #1B4A70 #6C1B70 #70411B
split-complementary
#1F701B #411B70 #701B4A
monochromatic
#071906 #113F0F #1F701B #2DA127 #3ECF37

Accessibility & contrast

On white

6.19
#1F701B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#1F701B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F701B
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F701B#FFFFFF#000000##FFFFFF
##1F701B1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73650C
Deuteranopia (green-blind)
#695F24
Tritanopia (blue-blind)
#096C5F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #1f701b;
/* rgb */ color: rgb(31, 112, 27);
/* oklch */ color: oklch(47.9% 0.142 142.4);
Tailwind
colors: {
  custom: {
    50: '#689a5d',
    500: '#1f701b',
    950: '#000000',
  },
}
SCSS
$custom: #1f701b;
$custom-light: #689a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f701b",
  "rgb": {
    "r": 31,
    "g": 112,
    "b": 27
  },
  "hsl": {
    "h": 117.176,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.47908,
    "c": 0.14173,
    "h": 142.4
  },
  "luminance": 0.11959
}

Semantic roles & 50–950 ramp

primary
#1F701B
secondary
#A042A5
accent
#44E4DD
background
#F6F9F5
surface
#EBF2E9
border
#C6CCC5
text
#070E04
muted
#7A7E79

Preview Lab

Preview with #1F701B

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

Preview Lab → · Contrast checker → · Palette generator →

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