#1F8F2C#1F8F2C

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

Color values

HEX#1F8F2C
RGBrgb(31, 143, 44)
HSLhsl(127, 64%, 34%)
HSVhsv(127, 78%, 56%)
CMYKcmyk(78.3%, 0%, 69.2%, 43.9%)
CIE-LABlab(51.97, -50.48, 42.40)
CIE-LCHlch(51.97, 65.93, 139.98°)
OKLaboklab(56.93% -0.1364 0.0976)
OKLCHoklch(56.93% 0.168 144.4)
XYZxyz(10.8414, 20.1168, 5.6939)
Luminance0.2012 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F2C #8F1F82
analogous
#4A8F1F #1F8F2C #1F8F64
triadic
#1F8F2C #2C1F8F #8F2C1F
tetradic
#1F8F2C #1F4A8F #8F1F82 #8F641F
square
#1F8F2C #1F4A8F #8F1F82 #8F641F
split-complementary
#1F8F2C #641F8F #8F1F4A
monochromatic
#092A0D #145D1D #1F8F2C #2AC13B #4FD95F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8F2C#FFFFFF#000000##000000
##1F8F2C1.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)
#92811E
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#008B7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f2c;
/* rgb */ color: rgb(31, 143, 44);
/* oklch */ color: oklch(56.9% 0.168 144.4);
Tailwind
colors: {
  custom: {
    50: '#6fb16a',
    500: '#1f8f2c',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f2c;
$custom-light: #6fb16a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f2c",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 126.964,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.56931,
    "c": 0.16777,
    "h": 144.4
  },
  "luminance": 0.20118
}

Semantic roles & 50–950 ramp

primary
#1F8F2C
secondary
#BC4EAF
accent
#40D4E7
background
#F7FBF6
surface
#EDF6EB
border
#C8D0C6
text
#091107
muted
#7B807A

Preview Lab

Preview with #1F8F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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