#1F7830#1F7830

#1F7830 is a mid, vivid green. Relative luminance 0.139; OKLCH L 50.5% C 0.136 H 146.3°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#1F7830
RGBrgb(31, 120, 48)
HSLhsl(131, 59%, 30%)
HSVhsv(131, 74%, 47%)
CMYKcmyk(74.2%, 0%, 60%, 52.9%)
CIE-LABlab(44.14, -41.82, 31.72)
CIE-LCHlch(44.14, 52.49, 142.82°)
OKLaboklab(50.45% -0.1128 0.0753)
OKLCHoklch(50.45% 0.136 146.3)
XYZxyz(7.8145, 13.9368, 5.0740)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7830 #781F67
analogous
#3A781F #1F7830 #1F785D
triadic
#1F7830 #301F78 #78301F
tetradic
#1F7830 #1F3A78 #781F67 #785D1F
square
#1F7830 #1F3A78 #781F67 #785D1F
split-complementary
#1F7830 #5D1F78 #781F3A
monochromatic
#06180A #12471D #1F7830 #2CA943 #43CE5E

Accessibility & contrast

On white

5.54
#1F7830 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#1F7830 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7830
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7830#FFFFFF#000000##FFFFFF
##1F78301.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D29
Deuteranopia (green-blind)
#6F6636
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #1f7830;
/* rgb */ color: rgb(31, 120, 48);
/* oklch */ color: oklch(50.5% 0.136 146.3);
Tailwind
colors: {
  custom: {
    50: '#69a06b',
    500: '#1f7830',
    950: '#000000',
  },
}
SCSS
$custom: #1f7830;
$custom-light: #69a06b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7830",
  "rgb": {
    "r": 31,
    "g": 120,
    "b": 48
  },
  "hsl": {
    "h": 131.461,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50453,
    "c": 0.13556,
    "h": 146.3
  },
  "luminance": 0.13938
}

Semantic roles & 50–950 ramp

primary
#1F7830
secondary
#AB4798
accent
#46C4E2
background
#F6F9F6
surface
#ECF2EB
border
#C7CCC6
text
#070F07
muted
#7A7E7A

Preview Lab

Preview with #1F7830

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

Preview Lab → · Contrast checker → · Palette generator →

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