#1F9540#1F9540

#1F9540 is a mid, vivid green. Relative luminance 0.222; OKLCH L 58.8% C 0.159 H 147.7°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#1F9540
RGBrgb(31, 149, 64)
HSLhsl(137, 66%, 35%)
HSVhsv(137, 79%, 58%)
CMYKcmyk(79.2%, 0%, 57%, 41.6%)
CIE-LABlab(54.19, -50.07, 35.61)
CIE-LCHlch(54.19, 61.44, 144.58°)
OKLaboklab(58.84% -0.1346 0.085)
OKLCHoklch(58.84% 0.159 147.7)
XYZxyz(12.2370, 22.1549, 8.4809)
Luminance0.2216 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9540 #951F74
analogous
#39951F #1F9540 #1F957B
triadic
#1F9540 #401F95 #95401F
tetradic
#1F9540 #1F3995 #951F74 #957B1F
square
#1F9540 #1F3995 #951F74 #957B1F
split-complementary
#1F9540 #7B1F95 #951F39
monochromatic
#0A3014 #14622A #1F9540 #2AC856 #53DB79

Accessibility & contrast

On white

3.87
#1F9540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#1F9540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9540
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9540#FFFFFF#000000##000000
##1F95401.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978738
Deuteranopia (green-blind)
#897E47
Tritanopia (blue-blind)
#009282
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #1f9540;
/* rgb */ color: rgb(31, 149, 64);
/* oklch */ color: oklch(58.8% 0.159 147.7);
Tailwind
colors: {
  custom: {
    50: '#6fb577',
    500: '#1f9540',
    950: '#000000',
  },
}
SCSS
$custom: #1f9540;
$custom-light: #6fb577;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9540",
  "rgb": {
    "r": 31,
    "g": 149,
    "b": 64
  },
  "hsl": {
    "h": 136.78,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58841,
    "c": 0.15918,
    "h": 147.7
  },
  "luminance": 0.22156
}

Semantic roles & 50–950 ramp

primary
#1F9540
secondary
#BF51A0
accent
#3FB9E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #1F9540

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

Preview Lab → · Contrast checker → · Palette generator →

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