#1F8F34#1F8F34

#1F8F34 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.0% C 0.162 H 145.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#1F8F34
RGBrgb(31, 143, 52)
HSLhsl(131, 64%, 34%)
HSVhsv(131, 78%, 56%)
CMYKcmyk(78.3%, 0%, 63.6%, 43.9%)
CIE-LABlab(52.04, -49.58, 38.90)
CIE-LCHlch(52.04, 63.02, 141.89°)
OKLaboklab(57.02% -0.1336 0.0911)
OKLCHoklch(57.02% 0.162 145.7)
XYZxyz(11.0066, 20.1829, 6.5638)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8F34 #8F1F7A
analogous
#428F1F #1F8F34 #1F8F6C
triadic
#1F8F34 #341F8F #8F341F
tetradic
#1F8F34 #1F428F #8F1F7A #8F6C1F
square
#1F8F34 #1F428F #8F1F7A #8F6C1F
split-complementary
#1F8F34 #6C1F8F #8F1F42
monochromatic
#092A0F #145D22 #1F8F34 #2AC146 #4FD969

Accessibility & contrast

On white

4.17
#1F8F34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#1F8F34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8F34
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8F34#FFFFFF#000000##000000
##1F8F341.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91812A
Deuteranopia (green-blind)
#85793C
Tritanopia (blue-blind)
#008B7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8f34;
/* rgb */ color: rgb(31, 143, 52);
/* oklch */ color: oklch(57.0% 0.162 145.7);
Tailwind
colors: {
  custom: {
    50: '#6fb16f',
    500: '#1f8f34',
    950: '#000000',
  },
}
SCSS
$custom: #1f8f34;
$custom-light: #6fb16f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8f34",
  "rgb": {
    "r": 31,
    "g": 143,
    "b": 52
  },
  "hsl": {
    "h": 131.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57017,
    "c": 0.16173,
    "h": 145.7
  },
  "luminance": 0.20184
}

Semantic roles & 50–950 ramp

primary
#1F8F34
secondary
#BC4EA7
accent
#40C8E7
background
#F7FBF6
surface
#EDF6EC
border
#C8D0C7
text
#081107
muted
#7B807A

Preview Lab

Preview with #1F8F34

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

Preview Lab → · Contrast checker → · Palette generator →

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