#397B1F#397B1F

#397B1F is a mid, vivid green. Relative luminance 0.151; OKLCH L 52.0% C 0.142 H 138.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#397B1F
RGBrgb(57, 123, 31)
HSLhsl(103, 60%, 30%)
HSVhsv(103, 75%, 48%)
CMYKcmyk(53.7%, 0%, 74.8%, 51.8%)
CIE-LABlab(45.82, -38.41, 41.56)
CIE-LCHlch(45.82, 56.59, 132.75°)
OKLaboklab(52.01% -0.106 0.094)
OKLCHoklch(52.01% 0.142 138.4)
XYZxyz(9.0173, 15.1340, 3.7420)
Luminance0.1514 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#397B1F #611F7B
analogous
#677B1F #397B1F #1F7B33
triadic
#397B1F #1F397B #7B1F39
tetradic
#397B1F #1F677B #611F7B #7B331F
square
#397B1F #1F677B #611F7B #7B331F
split-complementary
#397B1F #331F7B #7B1F67
monochromatic
#0C1906 #224A13 #397B1F #50AC2B #6CD044

Accessibility & contrast

On white

5.21
#397B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#397B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #397B1F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##397B1F#FFFFFF#000000##FFFFFF
##397B1F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#337769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #397b1f;
/* rgb */ color: rgb(57, 123, 31);
/* oklch */ color: oklch(52.0% 0.142 138.4);
Tailwind
colors: {
  custom: {
    50: '#77a261',
    500: '#397b1f',
    950: '#000000',
  },
}
SCSS
$custom: #397b1f;
$custom-light: #77a261;
$custom-dark: #000000;
JSON
{
  "hex": "#397b1f",
  "rgb": {
    "r": 57,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 103.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52013,
    "c": 0.14166,
    "h": 138.4
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#397B1F
secondary
#9148AE
accent
#45E3B6
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #397B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#397B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva