#1F9342#1F9342

#1F9342 is a mid, vivid green. Relative luminance 0.216; OKLCH L 58.3% C 0.155 H 148.4°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#1F9342
RGBrgb(31, 147, 66)
HSLhsl(138, 65%, 35%)
HSVhsv(138, 79%, 58%)
CMYKcmyk(78.9%, 0%, 55.1%, 42.4%)
CIE-LABlab(53.55, -49.07, 33.83)
CIE-LCHlch(53.55, 59.60, 145.42°)
OKLaboklab(58.32% -0.1319 0.0812)
OKLCHoklch(58.32% 0.155 148.4)
XYZxyz(11.9812, 21.5507, 8.6814)
Luminance0.2155 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9342 #931F70
analogous
#36931F #1F9342 #1F937C
triadic
#1F9342 #421F93 #93421F
tetradic
#1F9342 #1F3693 #931F70 #937C1F
square
#1F9342 #1F3693 #931F70 #937C1F
split-complementary
#1F9342 #7C1F93 #931F36
monochromatic
#0A2E15 #14602B #1F9342 #2AC659 #52DA7B

Accessibility & contrast

On white

3.95
#1F9342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#1F9342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9342
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9342#FFFFFF#000000##000000
##1F93421.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94853B
Deuteranopia (green-blind)
#877C48
Tritanopia (blue-blind)
#009081
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #1f9342;
/* rgb */ color: rgb(31, 147, 66);
/* oklch */ color: oklch(58.3% 0.155 148.4);
Tailwind
colors: {
  custom: {
    50: '#6fb478',
    500: '#1f9342',
    950: '#000000',
  },
}
SCSS
$custom: #1f9342;
$custom-light: #6fb478;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9342",
  "rgb": {
    "r": 31,
    "g": 147,
    "b": 66
  },
  "hsl": {
    "h": 138.103,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58316,
    "c": 0.15485,
    "h": 148.4
  },
  "luminance": 0.21552
}

Semantic roles & 50–950 ramp

primary
#1F9342
secondary
#BE509D
accent
#40B5E8
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #1F9342

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

Preview Lab → · Contrast checker → · Palette generator →

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