#1F8231#1F8231

#1F8231 is a mid, vivid green. Relative luminance 0.165; OKLCH L 53.3% C 0.148 H 145.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#1F8231
RGBrgb(31, 130, 49)
HSLhsl(131, 61%, 32%)
HSVhsv(131, 76%, 51%)
CMYKcmyk(76.2%, 0%, 62.3%, 49%)
CIE-LABlab(47.59, -45.37, 35.24)
CIE-LCHlch(47.59, 57.45, 142.16°)
OKLaboklab(53.32% -0.1223 0.083)
OKLCHoklch(53.32% 0.148 145.9)
XYZxyz(9.1014, 16.4773, 5.6059)
Luminance0.1648 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8231 #821F70
analogous
#3F821F #1F8231 #1F8263
triadic
#1F8231 #311F82 #82311F
tetradic
#1F8231 #1F3F82 #821F70 #82631F
square
#1F8231 #1F3F82 #821F70 #82631F
split-complementary
#1F8231 #631F82 #821F3F
monochromatic
#071F0C #13511E #1F8231 #2BB344 #48D361

Accessibility & contrast

On white

4.89
#1F8231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#1F8231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8231
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8231#FFFFFF#000000##FFFFFF
##1F82311.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847628
Deuteranopia (green-blind)
#796E38
Tritanopia (blue-blind)
#007F71
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8231;
/* rgb */ color: rgb(31, 130, 49);
/* oklch */ color: oklch(53.3% 0.148 145.9);
Tailwind
colors: {
  custom: {
    50: '#6ba76c',
    500: '#1f8231',
    950: '#000000',
  },
}
SCSS
$custom: #1f8231;
$custom-light: #6ba76c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8231",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 130.909,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53317,
    "c": 0.14779,
    "h": 145.9
  },
  "luminance": 0.16478
}

Semantic roles & 50–950 ramp

primary
#1F8231
secondary
#B548A1
accent
#43C7E5
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#081007
muted
#7A7F7A

Preview Lab

Preview with #1F8231

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

Preview Lab → · Contrast checker → · Palette generator →

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