#1F8A2A#1F8A2A

#1F8A2A is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.163 H 144.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#1F8A2A
RGBrgb(31, 138, 42)
HSLhsl(126, 63%, 33%)
HSVhsv(126, 78%, 54%)
CMYKcmyk(77.5%, 0%, 69.6%, 45.9%)
CIE-LABlab(50.26, -48.99, 41.41)
CIE-LCHlch(50.26, 64.15, 139.79°)
OKLaboklab(55.5% -0.1325 0.0953)
OKLCHoklch(55.5% 0.163 144.3)
XYZxyz(10.0708, 18.6343, 5.2561)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A2A #8A1F7F
analogous
#498A1F #1F8A2A #1F8A5F
triadic
#1F8A2A #2A1F8A #8A2A1F
tetradic
#1F8A2A #1F498A #8A1F7F #8A5F1F
square
#1F8A2A #1F498A #8A1F7F #8A5F1F
split-complementary
#1F8A2A #5F1F8A #8A1F49
monochromatic
#09260C #14581B #1F8A2A #2ABC39 #4CD75B

Accessibility & contrast

On white

4.44
#1F8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#1F8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A2A
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A2A#FFFFFF#000000##000000
##1F8A2A1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D1D
Deuteranopia (green-blind)
#817433
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8a2a;
/* rgb */ color: rgb(31, 138, 42);
/* oklch */ color: oklch(55.5% 0.163 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ead69',
    500: '#1f8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a2a;
$custom-light: #6ead69;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a2a",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 126.168,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55504,
    "c": 0.1632,
    "h": 144.3
  },
  "luminance": 0.18635
}

Semantic roles & 50–950 ramp

primary
#1F8A2A
secondary
#BA4BAE
accent
#41D5E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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