#1F8730#1F8730

#1F8730 is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.155 H 145.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#1F8730
RGBrgb(31, 135, 48)
HSLhsl(130, 63%, 33%)
HSVhsv(130, 77%, 53%)
CMYKcmyk(77%, 0%, 64.4%, 47.1%)
CIE-LABlab(49.29, -47.27, 37.65)
CIE-LCHlch(49.29, 60.44, 141.46°)
OKLaboklab(54.72% -0.1275 0.088)
OKLCHoklch(54.72% 0.155 145.4)
XYZxyz(9.7619, 17.8315, 5.7231)
Luminance0.1783 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8730 #871F76
analogous
#42871F #1F8730 #1F8764
triadic
#1F8730 #301F87 #87301F
tetradic
#1F8730 #1F4287 #871F76 #87641F
square
#1F8730 #1F4287 #871F76 #87641F
split-complementary
#1F8730 #641F87 #871F42
monochromatic
#08230D #14551E #1F8730 #2AB942 #4BD661

Accessibility & contrast

On white

4.60
#1F8730 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#1F8730 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8730
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8730#FFFFFF#000000##FFFFFF
##1F87301.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897A26
Deuteranopia (green-blind)
#7D7238
Tritanopia (blue-blind)
#008375
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #1f8730;
/* rgb */ color: rgb(31, 135, 48);
/* oklch */ color: oklch(54.7% 0.155 145.4);
Tailwind
colors: {
  custom: {
    50: '#6dab6c',
    500: '#1f8730',
    950: '#000000',
  },
}
SCSS
$custom: #1f8730;
$custom-light: #6dab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8730",
  "rgb": {
    "r": 31,
    "g": 135,
    "b": 48
  },
  "hsl": {
    "h": 129.808,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.15496,
    "h": 145.4
  },
  "luminance": 0.17833
}

Semantic roles & 50–950 ramp

primary
#1F8730
secondary
#B84AA6
accent
#42CBE6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081007
muted
#7B7F7A

Preview Lab

Preview with #1F8730

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

Preview Lab → · Contrast checker → · Palette generator →

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