#1F8F2B#1F8F2B

#1F8F2B is a mid, vivid green. Relative luminance 0.201; OKLCH L 56.9% C 0.168 H 144.3°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#1F8F2B
RGBrgb(31, 143, 43)
HSLhsl(126, 64%, 34%)
HSVhsv(126, 78%, 56%)
CMYKcmyk(78.3%, 0%, 69.9%, 43.9%)
CIE-LABlab(51.96, -50.59, 42.81)
CIE-LCHlch(51.96, 66.27, 139.76°)
OKLaboklab(56.92% -0.1367 0.0984)
OKLCHoklch(56.92% 0.168 144.3)
XYZxyz(10.8228, 20.1094, 5.5961)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2B #8F1F83
analogous
#4B8F1F #1F8F2B #1F8F63
triadic
#1F8F2B #2B1F8F #8F2B1F
tetradic
#1F8F2B #1F4B8F #8F1F83 #8F631F
square
#1F8F2B #1F4B8F #8F1F83 #8F631F
split-complementary
#1F8F2B #631F8F #8F1F4B
monochromatic
#092A0D #145D1C #1F8F2B #2AC13A #4FD95E

Accessibility & contrast

On white

4.18
#1F8F2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#1F8F2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F2B
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F2B#FFFFFF#000000##000000
##1F8F2B1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92811D
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2b;
/* rgb */ color: rgb(31, 143, 43);
/* oklch */ color: oklch(56.9% 0.168 144.3);
Tailwind
colors: {
  custom: {
    50: '#6fb16a',
    500: '#1f8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2b;
$custom-light: #6fb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2b",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 126.429,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56922,
    "c": 0.16847,
    "h": 144.3
  },
  "luminance": 0.20111
}

Semantic roles & 50–950 ramp

primary
#1F8F2B
secondary
#BC4EB0
accent
#40D5E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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