#1F812E#1F812E

#1F812E is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.0% C 0.149 H 145.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#1F812E
RGBrgb(31, 129, 46)
HSLhsl(129, 61%, 31%)
HSVhsv(129, 76%, 51%)
CMYKcmyk(76%, 0%, 64.3%, 49.4%)
CIE-LABlab(47.22, -45.38, 36.26)
CIE-LCHlch(47.22, 58.09, 141.38°)
OKLaboklab(53% -0.1225 0.0848)
OKLCHoklch(53% 0.149 145.3)
XYZxyz(8.9079, 16.1881, 5.2394)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F812E #811F72
analogous
#41811F #1F812E #1F815F
triadic
#1F812E #2E1F81 #812E1F
tetradic
#1F812E #1F4181 #811F72 #815F1F
square
#1F812E #1F4181 #811F72 #815F1F
split-complementary
#1F812E #5F1F81 #811F41
monochromatic
#071E0B #13501C #1F812E #2BB240 #47D35D

Accessibility & contrast

On white

4.96
#1F812E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#1F812E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F812E
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F812E#FFFFFF#000000##FFFFFF
##1F812E1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837525
Deuteranopia (green-blind)
#786D35
Tritanopia (blue-blind)
#007E6F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #1f812e;
/* rgb */ color: rgb(31, 129, 46);
/* oklch */ color: oklch(53.0% 0.149 145.3);
Tailwind
colors: {
  custom: {
    50: '#6ba76a',
    500: '#1f812e',
    950: '#000000',
  },
}
SCSS
$custom: #1f812e;
$custom-light: #6ba76a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f812e",
  "rgb": {
    "r": 31,
    "g": 129,
    "b": 46
  },
  "hsl": {
    "h": 129.184,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52997,
    "c": 0.149,
    "h": 145.3
  },
  "luminance": 0.16189
}

Semantic roles & 50–950 ramp

primary
#1F812E
secondary
#B448A3
accent
#43CCE4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#080F07
muted
#7A7F7A

Preview Lab

Preview with #1F812E

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

Preview Lab → · Contrast checker → · Palette generator →

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