#1F7935#1F7935

#1F7935 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.8% C 0.132 H 147.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#1F7935
RGBrgb(31, 121, 53)
HSLhsl(135, 59%, 30%)
HSVhsv(135, 74%, 47%)
CMYKcmyk(74.4%, 0%, 56.2%, 52.5%)
CIE-LABlab(44.55, -41.46, 29.63)
CIE-LCHlch(44.55, 50.96, 144.45°)
OKLaboklab(50.81% -0.1117 0.071)
OKLCHoklch(50.81% 0.132 147.5)
XYZxyz(8.0444, 14.2222, 5.6887)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7935 #791F63
analogous
#36791F #1F7935 #1F7962
triadic
#1F7935 #351F79 #79351F
tetradic
#1F7935 #1F3679 #791F63 #79621F
square
#1F7935 #1F3679 #791F63 #79621F
split-complementary
#1F7935 #621F79 #791F36
monochromatic
#06180B #134820 #1F7935 #2BAA4A #43CF66

Accessibility & contrast

On white

5.46
#1F7935 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#1F7935 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7935
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7935#FFFFFF#000000##FFFFFF
##1F79351.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6E2F
Deuteranopia (green-blind)
#70663A
Tritanopia (blue-blind)
#00766A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7935;
/* rgb */ color: rgb(31, 121, 53);
/* oklch */ color: oklch(50.8% 0.132 147.5);
Tailwind
colors: {
  custom: {
    50: '#69a16e',
    500: '#1f7935',
    950: '#000000',
  },
}
SCSS
$custom: #1f7935;
$custom-light: #69a16e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7935",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 53
  },
  "hsl": {
    "h": 134.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50811,
    "c": 0.13235,
    "h": 147.5
  },
  "luminance": 0.14223
}

Semantic roles & 50–950 ramp

primary
#1F7935
secondary
#AC4794
accent
#45BCE2
background
#F6FAF6
surface
#ECF3EC
border
#C7CDC7
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7935

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

Preview Lab → · Contrast checker → · Palette generator →

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