#1F8B2B#1F8B2B

#1F8B2B is a mid, vivid green. Relative luminance 0.189; OKLCH L 55.8% C 0.164 H 144.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8B2B
RGBrgb(31, 139, 43)
HSLhsl(127, 64%, 33%)
HSVhsv(127, 78%, 55%)
CMYKcmyk(77.7%, 0%, 69.1%, 45.5%)
CIE-LABlab(50.60, -49.23, 41.36)
CIE-LCHlch(50.60, 64.30, 139.97°)
OKLaboklab(55.8% -0.1331 0.0953)
OKLCHoklch(55.8% 0.164 144.4)
XYZxyz(10.2330, 18.9298, 5.3995)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B2B #8B1F7F
analogous
#498B1F #1F8B2B #1F8B61
triadic
#1F8B2B #2B1F8B #8B2B1F
tetradic
#1F8B2B #1F498B #8B1F7F #8B611F
square
#1F8B2B #1F498B #8B1F7F #8B611F
split-complementary
#1F8B2B #611F8B #8B1F49
monochromatic
#09270C #14591C #1F8B2B #2ABD3A #4DD75C

Accessibility & contrast

On white

4.39
#1F8B2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#1F8B2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B2B
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B2B#FFFFFF#000000##000000
##1F8B2B1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1E
Deuteranopia (green-blind)
#827534
Tritanopia (blue-blind)
#008777
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8b2b;
/* rgb */ color: rgb(31, 139, 43);
/* oklch */ color: oklch(55.8% 0.164 144.4);
Tailwind
colors: {
  custom: {
    50: '#6eae69',
    500: '#1f8b2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b2b;
$custom-light: #6eae69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b2b",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 43
  },
  "hsl": {
    "h": 126.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55796,
    "c": 0.16368,
    "h": 144.4
  },
  "luminance": 0.18931
}

Semantic roles & 50–950 ramp

primary
#1F8B2B
secondary
#BA4CAE
accent
#41D4E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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