#1F8B1E#1F8B1E

#1F8B1E is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.7% C 0.172 H 142.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#1F8B1E
RGBrgb(31, 139, 30)
HSLhsl(119, 64%, 33%)
HSVhsv(119, 78%, 55%)
CMYKcmyk(77.7%, 0%, 78.4%, 45.5%)
CIE-LABlab(50.51, -50.39, 46.37)
CIE-LCHlch(50.51, 68.48, 137.38°)
OKLaboklab(55.69% -0.1368 0.1041)
OKLCHoklch(55.69% 0.172 142.7)
XYZxyz(10.0314, 18.8491, 4.3376)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B1E #8A1E8B
analogous
#558B1E #1F8B1E #1E8B54
triadic
#1F8B1E #1E1F8B #8B1E1F
tetradic
#1F8B1E #1E558B #8A1E8B #8B541E
square
#1F8B1E #1E558B #8A1E8B #8B541E
split-complementary
#1F8B1E #541E8B #8B1E55
monochromatic
#092608 #145913 #1F8B1E #2ABD29 #4CD84B

Accessibility & contrast

On white

4.40
#1F8B1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#1F8B1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B1E
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B1E#FFFFFF#000000##000000
##1F8B1E1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D04
Deuteranopia (green-blind)
#82752A
Tritanopia (blue-blind)
#008776
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b1e;
/* rgb */ color: rgb(31, 139, 30);
/* oklch */ color: oklch(55.7% 0.172 142.7);
Tailwind
colors: {
  custom: {
    50: '#6fae62',
    500: '#1f8b1e',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b1e;
$custom-light: #6fae62;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b1e",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 119.45,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55687,
    "c": 0.17193,
    "h": 142.7
  },
  "luminance": 0.1885
}

Semantic roles & 50–950 ramp

primary
#1F8B1E
secondary
#BA4ABB
accent
#40E7E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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