#1F7230#1F7230

#1F7230 is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.7% C 0.127 H 146.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#1F7230
RGBrgb(31, 114, 48)
HSLhsl(132, 57%, 28%)
HSVhsv(132, 73%, 45%)
CMYKcmyk(72.8%, 0%, 57.9%, 55.3%)
CIE-LABlab(42.06, -39.53, 29.25)
CIE-LCHlch(42.06, 49.17, 143.50°)
OKLaboklab(48.73% -0.1066 0.0699)
OKLCHoklch(48.73% 0.127 146.8)
XYZxyz(7.1154, 12.5386, 4.8409)
Luminance0.1254 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7230 #721F61
analogous
#37721F #1F7230 #1F7259
triadic
#1F7230 #301F72 #72301F
tetradic
#1F7230 #1F3772 #721F61 #72591F
square
#1F7230 #1F3772 #721F61 #72591F
split-complementary
#1F7230 #591F72 #721F37
monochromatic
#07180A #12421C #1F7230 #2CA244 #40CB5D

Accessibility & contrast

On white

5.99
#1F7230 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#1F7230 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7230
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7230#FFFFFF#000000##FFFFFF
##1F72301.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74672A
Deuteranopia (green-blind)
#6A6135
Tritanopia (blue-blind)
#006F63
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #1f7230;
/* rgb */ color: rgb(31, 114, 48);
/* oklch */ color: oklch(48.7% 0.127 146.8);
Tailwind
colors: {
  custom: {
    50: '#679b6a',
    500: '#1f7230',
    950: '#000000',
  },
}
SCSS
$custom: #1f7230;
$custom-light: #679b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7230",
  "rgb": {
    "r": 31,
    "g": 114,
    "b": 48
  },
  "hsl": {
    "h": 132.289,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4873,
    "c": 0.12743,
    "h": 146.8
  },
  "luminance": 0.12539
}

Semantic roles & 50–950 ramp

primary
#1F7230
secondary
#A64792
accent
#47C1E0
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E06
muted
#7A7E7A

Preview Lab

Preview with #1F7230

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

Preview Lab → · Contrast checker → · Palette generator →

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