#1F7338#1F7338

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

Color values

HEX#1F7338
RGBrgb(31, 115, 56)
HSLhsl(138, 58%, 29%)
HSVhsv(138, 73%, 45%)
CMYKcmyk(73%, 0%, 51.3%, 54.9%)
CIE-LABlab(42.52, -38.64, 25.52)
CIE-LCHlch(42.52, 46.31, 146.56°)
OKLaboklab(49.14% -0.104 0.062)
OKLCHoklch(49.14% 0.121 149.2)
XYZxyz(7.4090, 12.8375, 5.8280)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7338 #731F5A
analogous
#30731F #1F7338 #1F7362
triadic
#1F7338 #381F73 #73381F
tetradic
#1F7338 #1F3073 #731F5A #73621F
square
#1F7338 #1F3073 #731F5A #73621F
split-complementary
#1F7338 #621F73 #731F30
monochromatic
#06180C #124321 #1F7338 #2CA34F #41CC6A

Accessibility & contrast

On white

5.89
#1F7338 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#1F7338 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7338
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7338#FFFFFF#000000##FFFFFF
##1F73381.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746933
Deuteranopia (green-blind)
#6A623C
Tritanopia (blue-blind)
#007165
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #1f7338;
/* rgb */ color: rgb(31, 115, 56);
/* oklch */ color: oklch(49.1% 0.121 149.2);
Tailwind
colors: {
  custom: {
    50: '#679c70',
    500: '#1f7338',
    950: '#000000',
  },
}
SCSS
$custom: #1f7338;
$custom-light: #679c70;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7338",
  "rgb": {
    "r": 31,
    "g": 115,
    "b": 56
  },
  "hsl": {
    "h": 137.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49144,
    "c": 0.12114,
    "h": 149.2
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#1F7338
secondary
#A7478A
accent
#47B3E1
background
#F6F9F6
surface
#EBF2EC
border
#C6CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #1F7338

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

Preview Lab → · Contrast checker → · Palette generator →

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