#1F7A30#1F7A30

#1F7A30 is a mid, vivid green. Relative luminance 0.144; OKLCH L 51.0% C 0.138 H 146.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#1F7A30
RGBrgb(31, 122, 48)
HSLhsl(131, 59%, 30%)
HSVhsv(131, 75%, 48%)
CMYKcmyk(74.6%, 0%, 60.7%, 52.2%)
CIE-LABlab(44.83, -42.57, 32.53)
CIE-LCHlch(44.83, 53.58, 142.61°)
OKLaboklab(51.03% -0.1148 0.077)
OKLCHoklch(51.03% 0.138 146.1)
XYZxyz(8.0575, 14.4229, 5.1550)
Luminance0.1442 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7A30 #7A1F69
analogous
#3B7A1F #1F7A30 #1F7A5E
triadic
#1F7A30 #301F7A #7A301F
tetradic
#1F7A30 #1F3B7A #7A1F69 #7A5E1F
square
#1F7A30 #1F3B7A #7A1F69 #7A5E1F
split-complementary
#1F7A30 #5E1F7A #7A1F3B
monochromatic
#06180A #13491D #1F7A30 #2BAB43 #44CF5E

Accessibility & contrast

On white

5.41
#1F7A30 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#1F7A30 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7A30
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7A30#FFFFFF#000000##FFFFFF
##1F7A301.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F28
Deuteranopia (green-blind)
#716736
Tritanopia (blue-blind)
#00776A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #1f7a30;
/* rgb */ color: rgb(31, 122, 48);
/* oklch */ color: oklch(51.0% 0.138 146.1);
Tailwind
colors: {
  custom: {
    50: '#69a16b',
    500: '#1f7a30',
    950: '#000000',
  },
}
SCSS
$custom: #1f7a30;
$custom-light: #69a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7a30",
  "rgb": {
    "r": 31,
    "g": 122,
    "b": 48
  },
  "hsl": {
    "h": 131.209,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.51026,
    "c": 0.13823,
    "h": 146.1
  },
  "luminance": 0.14424
}

Semantic roles & 50–950 ramp

primary
#1F7A30
secondary
#AD479A
accent
#45C5E3
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7A30

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

Preview Lab → · Contrast checker → · Palette generator →

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