#1F7334#1F7334

#1F7334 is a mid, vivid green. Relative luminance 0.128; OKLCH L 49.1% C 0.125 H 147.9°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#1F7334
RGBrgb(31, 115, 52)
HSLhsl(135, 58%, 29%)
HSVhsv(135, 73%, 45%)
CMYKcmyk(73%, 0%, 54.8%, 54.9%)
CIE-LABlab(42.46, -39.30, 27.62)
CIE-LCHlch(42.46, 48.03, 144.91°)
OKLaboklab(49.08% -0.1059 0.0665)
OKLCHoklch(49.08% 0.125 147.9)
XYZxyz(7.3151, 12.7999, 5.3333)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7334 #731F5E
analogous
#34731F #1F7334 #1F735E
triadic
#1F7334 #341F73 #73341F
tetradic
#1F7334 #1F3473 #731F5E #735E1F
square
#1F7334 #1F3473 #731F5E #735E1F
split-complementary
#1F7334 #5E1F73 #731F34
monochromatic
#06180B #12431E #1F7334 #2CA34A #41CC63

Accessibility & contrast

On white

5.90
#1F7334 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#1F7334 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7334
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7334#FFFFFF#000000##FFFFFF
##1F73341.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#74682E
Deuteranopia (green-blind)
#6A6139
Tritanopia (blue-blind)
#007065
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7334;
/* rgb */ color: rgb(31, 115, 52);
/* oklch */ color: oklch(49.1% 0.125 147.9);
Tailwind
colors: {
  custom: {
    50: '#679c6d',
    500: '#1f7334',
    950: '#000000',
  },
}
SCSS
$custom: #1f7334;
$custom-light: #679c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7334",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 52
  },
  "hsl": {
    "h": 135,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49078,
    "c": 0.12504,
    "h": 147.9
  },
  "luminance": 0.12801
}

Semantic roles & 50–950 ramp

primary
#1F7334
secondary
#A7478F
accent
#47BAE1
background
#F6F9F6
surface
#EBF2EB
border
#C6CCC6
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7334

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

Preview Lab → · Contrast checker → · Palette generator →

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