#1F8B2E#1F8B2E

#1F8B2E is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.8% C 0.161 H 144.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#1F8B2E
RGBrgb(31, 139, 46)
HSLhsl(128, 64%, 33%)
HSVhsv(128, 78%, 55%)
CMYKcmyk(77.7%, 0%, 66.9%, 45.5%)
CIE-LABlab(50.63, -48.90, 40.06)
CIE-LCHlch(50.63, 63.22, 140.67°)
OKLaboklab(55.83% -0.132 0.0929)
OKLCHoklch(55.83% 0.161 144.9)
XYZxyz(10.2901, 18.9526, 5.7001)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8B2E #8B1F7C
analogous
#468B1F #1F8B2E #1F8B64
triadic
#1F8B2E #2E1F8B #8B2E1F
tetradic
#1F8B2E #1F468B #8B1F7C #8B641F
square
#1F8B2E #1F468B #8B1F7C #8B641F
split-complementary
#1F8B2E #641F8B #8B1F46
monochromatic
#09270D #14591D #1F8B2E #2ABD3F #4DD760

Accessibility & contrast

On white

4.38
#1F8B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#1F8B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8B2E
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8B2E#FFFFFF#000000##000000
##1F8B2E1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7E22
Deuteranopia (green-blind)
#817536
Tritanopia (blue-blind)
#008778
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8b2e;
/* rgb */ color: rgb(31, 139, 46);
/* oklch */ color: oklch(55.8% 0.161 144.9);
Tailwind
colors: {
  custom: {
    50: '#6eae6b',
    500: '#1f8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #1f8b2e;
$custom-light: #6eae6b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8b2e",
  "rgb": {
    "r": 31,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 128.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55827,
    "c": 0.16147,
    "h": 144.9
  },
  "luminance": 0.18954
}

Semantic roles & 50–950 ramp

primary
#1F8B2E
secondary
#BA4CAB
accent
#41D0E7
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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