#1F891B#1F891B

#1F891B is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.1% C 0.171 H 142.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F891B
RGBrgb(31, 137, 27)
HSLhsl(118, 67%, 32%)
HSVhsv(118, 80%, 54%)
CMYKcmyk(77.4%, 0%, 80.3%, 46.3%)
CIE-LABlab(49.81, -49.94, 46.71)
CIE-LCHlch(49.81, 68.38, 136.92°)
OKLaboklab(55.1% -0.1358 0.1044)
OKLCHoklch(55.1% 0.171 142.4)
XYZxyz(9.7080, 18.2606, 4.0497)
Luminance0.1826 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F891B #851B89
analogous
#56891B #1F891B #1B894E
triadic
#1F891B #1B1F89 #891B1F
tetradic
#1F891B #1B5689 #851B89 #894E1B
square
#1F891B #1B5689 #851B89 #894E1B
split-complementary
#1F891B #4E1B89 #891B56
monochromatic
#082307 #135611 #1F891B #2BBC25 #4ADA44

Accessibility & contrast

On white

4.51
#1F891B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F891B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F891B
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F891B#FFFFFF#000000##000000
##1F891B1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817328
Tritanopia (blue-blind)
#008575
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f891b;
/* rgb */ color: rgb(31, 137, 27);
/* oklch */ color: oklch(55.1% 0.171 142.4);
Tailwind
colors: {
  custom: {
    50: '#6eac61',
    500: '#1f891b',
    950: '#000000',
  },
}
SCSS
$custom: #1f891b;
$custom-light: #6eac61;
$custom-dark: #000000;
JSON
{
  "hex": "#1f891b",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 27
  },
  "hsl": {
    "h": 117.818,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.551,
    "c": 0.17125,
    "h": 142.4
  },
  "luminance": 0.18262
}

Semantic roles & 50–950 ramp

primary
#1F891B
secondary
#B744BC
accent
#3EEAE4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #1F891B

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

Preview Lab → · Contrast checker → · Palette generator →

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