#1F8438#1F8438

#1F8438 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.0% C 0.144 H 147.3°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#1F8438
RGBrgb(31, 132, 56)
HSLhsl(135, 62%, 32%)
HSVhsv(135, 77%, 52%)
CMYKcmyk(76.5%, 0%, 57.6%, 48.2%)
CIE-LABlab(48.36, -45.13, 32.66)
CIE-LCHlch(48.36, 55.70, 144.11°)
OKLaboklab(53.98% -0.1215 0.0779)
OKLCHoklch(53.98% 0.144 147.3)
XYZxyz(9.5294, 17.0783, 6.5348)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8438 #841F6B
analogous
#39841F #1F8438 #1F846A
triadic
#1F8438 #381F84 #84381F
tetradic
#1F8438 #1F3984 #841F6B #846A1F
square
#1F8438 #1F3984 #841F6B #846A1F
split-complementary
#1F8438 #6A1F84 #841F39
monochromatic
#08210E #135223 #1F8438 #2BB64D #49D46C

Accessibility & contrast

On white

4.76
#1F8438 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#1F8438 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8438
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8438#FFFFFF#000000##FFFFFF
##1F84381.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867831
Deuteranopia (green-blind)
#7A703E
Tritanopia (blue-blind)
#008173
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8438;
/* rgb */ color: rgb(31, 132, 56);
/* oklch */ color: oklch(54.0% 0.144 147.3);
Tailwind
colors: {
  custom: {
    50: '#6ca971',
    500: '#1f8438',
    950: '#000000',
  },
}
SCSS
$custom: #1f8438;
$custom-light: #6ca971;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8438",
  "rgb": {
    "r": 31,
    "g": 132,
    "b": 56
  },
  "hsl": {
    "h": 134.851,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53976,
    "c": 0.14431,
    "h": 147.3
  },
  "luminance": 0.17079
}

Semantic roles & 50–950 ramp

primary
#1F8438
secondary
#B7489B
accent
#43BDE5
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #1F8438

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

Preview Lab → · Contrast checker → · Palette generator →

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