#1F8338#1F8338

#1F8338 is a mid, vivid green. Relative luminance 0.168; OKLCH L 53.7% C 0.143 H 147.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#1F8338
RGBrgb(31, 131, 56)
HSLhsl(135, 62%, 32%)
HSVhsv(135, 76%, 51%)
CMYKcmyk(76.3%, 0%, 57.3%, 48.6%)
CIE-LABlab(48.02, -44.76, 32.25)
CIE-LCHlch(48.02, 55.17, 144.23°)
OKLaboklab(53.69% -0.1205 0.077)
OKLCHoklch(53.69% 0.143 147.4)
XYZxyz(9.3945, 16.8083, 6.4898)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8338 #831F6A
analogous
#38831F #1F8338 #1F836A
triadic
#1F8338 #381F83 #83381F
tetradic
#1F8338 #1F3883 #831F6A #836A1F
square
#1F8338 #1F3883 #831F6A #836A1F
split-complementary
#1F8338 #6A1F83 #831F38
monochromatic
#08200E #135223 #1F8338 #2BB44D #49D46B

Accessibility & contrast

On white

4.81
#1F8338 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#1F8338 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8338
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8338#FFFFFF#000000##FFFFFF
##1F83381.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857731
Deuteranopia (green-blind)
#796F3E
Tritanopia (blue-blind)
#008072
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #1f8338;
/* rgb */ color: rgb(31, 131, 56);
/* oklch */ color: oklch(53.7% 0.143 147.4);
Tailwind
colors: {
  custom: {
    50: '#6ba871',
    500: '#1f8338',
    950: '#000000',
  },
}
SCSS
$custom: #1f8338;
$custom-light: #6ba871;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8338",
  "rgb": {
    "r": 31,
    "g": 131,
    "b": 56
  },
  "hsl": {
    "h": 135,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.53694,
    "c": 0.14299,
    "h": 147.4
  },
  "luminance": 0.16809
}

Semantic roles & 50–950 ramp

primary
#1F8338
secondary
#B6489A
accent
#43BCE5
background
#F6FAF6
surface
#ECF4EC
border
#C7CEC7
text
#081008
muted
#7A7F7B

Preview Lab

Preview with #1F8338

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

Preview Lab → · Contrast checker → · Palette generator →

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