#315E1F#315E1F

#315E1F is a dark, moderate green. Relative luminance 0.088; OKLCH L 43.4% C 0.106 H 137.9°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#315E1F
RGBrgb(49, 94, 31)
HSLhsl(103, 50%, 25%)
HSVhsv(103, 67%, 37%)
CMYKcmyk(47.9%, 0%, 67%, 63.1%)
CIE-LABlab(35.51, -28.45, 30.52)
CIE-LCHlch(35.51, 41.72, 132.98°)
OKLaboklab(43.45% -0.0785 0.0709)
OKLCHoklch(43.45% 0.106 137.9)
XYZxyz(5.5165, 8.7570, 2.6956)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E1F #4C1F5E
analogous
#515E1F #315E1F #1F5E2D
triadic
#315E1F #1F315E #5E1F31
tetradic
#315E1F #1F515E #4C1F5E #5E2D1F
square
#315E1F #1F515E #4C1F5E #5E2D1F
split-complementary
#315E1F #2D1F5E #5E1F51
monochromatic
#0C1708 #193010 #315E1F #498C2E #61BA3D

Accessibility & contrast

On white

7.63
#315E1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#315E1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315E1F
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315E1F#FFFFFF#000000##FFFFFF
##315E1F1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615618
Deuteranopia (green-blind)
#5B5224
Tritanopia (blue-blind)
#2E5B51
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315e1f;
/* rgb */ color: rgb(49, 94, 31);
/* oklch */ color: oklch(43.4% 0.106 137.9);
Tailwind
colors: {
  custom: {
    50: '#6d8c5e',
    500: '#315e1f',
    950: '#000000',
  },
}
SCSS
$custom: #315e1f;
$custom-light: #6d8c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#315e1f",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 31
  },
  "hsl": {
    "h": 102.857,
    "s": 50.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43449,
    "c": 0.10571,
    "h": 137.9
  },
  "luminance": 0.08757
}

Semantic roles & 50–950 ramp

primary
#315E1F
secondary
#7D4693
accent
#4EDAB2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315E1F

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

Preview Lab → · Contrast checker → · Palette generator →

#315E1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva