#1F831A#1F831A

#1F831A is a mid, vivid green. Relative luminance 0.166; OKLCH L 53.4% C 0.165 H 142.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#1F831A
RGBrgb(31, 131, 26)
HSLhsl(117, 67%, 31%)
HSVhsv(117, 80%, 51%)
CMYKcmyk(76.3%, 0%, 80.2%, 48.6%)
CIE-LABlab(47.75, -48.01, 45.05)
CIE-LCHlch(47.75, 65.84, 136.82°)
OKLaboklab(53.38% -0.1306 0.1008)
OKLCHoklch(53.38% 0.165 142.3)
XYZxyz(8.8673, 16.5975, 3.7134)
Luminance0.1660 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F831A #7E1A83
analogous
#53831A #1F831A #1A8349
triadic
#1F831A #1A1F83 #831A1F
tetradic
#1F831A #1A5383 #7E1A83 #83491A
square
#1F831A #1A5383 #7E1A83 #83491A
split-complementary
#1F831A #491A83 #831A53
monochromatic
#071D06 #135010 #1F831A #2BB624 #46D93F

Accessibility & contrast

On white

4.86
#1F831A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#1F831A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F831A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F831A#FFFFFF#000000##FFFFFF
##1F831A1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#007F6F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f831a;
/* rgb */ color: rgb(31, 131, 26);
/* oklch */ color: oklch(53.4% 0.165 142.3);
Tailwind
colors: {
  custom: {
    50: '#6da85f',
    500: '#1f831a',
    950: '#000000',
  },
}
SCSS
$custom: #1f831a;
$custom-light: #6da85f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f831a",
  "rgb": {
    "r": 31,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 117.143,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53384,
    "c": 0.16494,
    "h": 142.3
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#1F831A
secondary
#B142B7
accent
#3EEAE2
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F831A

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

Preview Lab → · Contrast checker → · Palette generator →

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