#1F9938#1F9938

#1F9938 is a mid, vivid green. Relative luminance 0.234; OKLCH L 59.8% C 0.171 H 145.9°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#1F9938
RGBrgb(31, 153, 56)
HSLhsl(132, 66%, 36%)
HSVhsv(132, 80%, 60%)
CMYKcmyk(79.7%, 0%, 63.4%, 40%)
CIE-LABlab(55.44, -52.52, 40.89)
CIE-LCHlch(55.44, 66.56, 142.09°)
OKLaboklab(59.85% -0.1414 0.0957)
OKLCHoklch(59.85% 0.171 145.9)
XYZxyz(12.6692, 23.3578, 7.5814)
Luminance0.2336 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F9938 #991F80
analogous
#43991F #1F9938 #1F9975
triadic
#1F9938 #381F99 #99381F
tetradic
#1F9938 #1F4399 #991F80 #99751F
square
#1F9938 #1F4399 #991F80 #99751F
split-complementary
#1F9938 #751F99 #991F43
monochromatic
#0A3313 #156625 #1F9938 #29CC4B #56DD71

Accessibility & contrast

On white

3.70
#1F9938 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#1F9938 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F9938
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F9938#FFFFFF#000000##000000
##1F99381.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8A2D
Deuteranopia (green-blind)
#8E8140
Tritanopia (blue-blind)
#009584
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #1f9938;
/* rgb */ color: rgb(31, 153, 56);
/* oklch */ color: oklch(59.8% 0.171 145.9);
Tailwind
colors: {
  custom: {
    50: '#71b872',
    500: '#1f9938',
    950: '#000000',
  },
}
SCSS
$custom: #1f9938;
$custom-light: #71b872;
$custom-dark: #000000;
JSON
{
  "hex": "#1f9938",
  "rgb": {
    "r": 31,
    "g": 153,
    "b": 56
  },
  "hsl": {
    "h": 132.295,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.59849,
    "c": 0.1708,
    "h": 145.9
  },
  "luminance": 0.23359
}

Semantic roles & 50–950 ramp

primary
#1F9938
secondary
#C054AA
accent
#3FC6E9
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091108
muted
#7B807B

Preview Lab

Preview with #1F9938

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

Preview Lab → · Contrast checker → · Palette generator →

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