#1F7D30#1F7D30

#1F7D30 is a mid, vivid green. Relative luminance 0.152; OKLCH L 51.9% C 0.142 H 145.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#1F7D30
RGBrgb(31, 125, 48)
HSLhsl(131, 60%, 31%)
HSVhsv(131, 75%, 49%)
CMYKcmyk(75.2%, 0%, 61.6%, 51%)
CIE-LABlab(45.87, -43.68, 33.74)
CIE-LCHlch(45.87, 55.19, 142.32°)
OKLaboklab(51.88% -0.1178 0.0796)
OKLCHoklch(51.88% 0.142 145.9)
XYZxyz(8.4316, 15.1710, 5.2797)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7D30 #7D1F6C
analogous
#3D7D1F #1F7D30 #1F7D5F
triadic
#1F7D30 #301F7D #7D301F
tetradic
#1F7D30 #1F3D7D #7D1F6C #7D5F1F
square
#1F7D30 #1F3D7D #7D1F6C #7D5F1F
split-complementary
#1F7D30 #5F1F7D #7D1F3D
monochromatic
#071B0A #134C1D #1F7D30 #2BAE43 #45D15F

Accessibility & contrast

On white

5.21
#1F7D30 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#1F7D30 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7D30
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7D30#FFFFFF#000000##FFFFFF
##1F7D301.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7128
Deuteranopia (green-blind)
#746A36
Tritanopia (blue-blind)
#007A6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7d30;
/* rgb */ color: rgb(31, 125, 48);
/* oklch */ color: oklch(51.9% 0.142 145.9);
Tailwind
colors: {
  custom: {
    50: '#6aa46b',
    500: '#1f7d30',
    950: '#000000',
  },
}
SCSS
$custom: #1f7d30;
$custom-light: #6aa46b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7d30",
  "rgb": {
    "r": 31,
    "g": 125,
    "b": 48
  },
  "hsl": {
    "h": 130.851,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.51882,
    "c": 0.14217,
    "h": 145.9
  },
  "luminance": 0.15172
}

Semantic roles & 50–950 ramp

primary
#1F7D30
secondary
#B0489D
accent
#44C7E3
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7D30

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

Preview Lab → · Contrast checker → · Palette generator →

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