#1F7638#1F7638

#1F7638 is a mid, vivid green. Relative luminance 0.135; OKLCH L 50.0% C 0.125 H 148.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#1F7638
RGBrgb(31, 118, 56)
HSLhsl(137, 58%, 29%)
HSVhsv(137, 74%, 46%)
CMYKcmyk(73.7%, 0%, 52.5%, 53.7%)
CIE-LABlab(43.56, -39.83, 26.81)
CIE-LCHlch(43.56, 48.01, 146.05°)
OKLaboklab(50% -0.1072 0.0649)
OKLCHoklch(50% 0.125 148.8)
XYZxyz(7.7567, 13.5328, 5.9439)
Luminance0.1353 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7638 #761F5D
analogous
#32761F #1F7638 #1F7664
triadic
#1F7638 #381F76 #76381F
tetradic
#1F7638 #1F3276 #761F5D #76641F
square
#1F7638 #1F3276 #761F5D #76641F
split-complementary
#1F7638 #641F76 #761F32
monochromatic
#06180C #124621 #1F7638 #2CA64F #42CD6A

Accessibility & contrast

On white

5.67
#1F7638 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#1F7638 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7638
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7638#FFFFFF#000000##FFFFFF
##1F76381.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776B33
Deuteranopia (green-blind)
#6D643D
Tritanopia (blue-blind)
#007468
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #1f7638;
/* rgb */ color: rgb(31, 118, 56);
/* oklch */ color: oklch(50.0% 0.125 148.8);
Tailwind
colors: {
  custom: {
    50: '#689e70',
    500: '#1f7638',
    950: '#000000',
  },
}
SCSS
$custom: #1f7638;
$custom-light: #689e70;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7638",
  "rgb": {
    "r": 31,
    "g": 118,
    "b": 56
  },
  "hsl": {
    "h": 137.241,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.50002,
    "c": 0.12536,
    "h": 148.8
  },
  "luminance": 0.13534
}

Semantic roles & 50–950 ramp

primary
#1F7638
secondary
#AA478D
accent
#46B5E2
background
#F6F9F6
surface
#EBF2EC
border
#C6CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7638

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

Preview Lab → · Contrast checker → · Palette generator →

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