#315E1B#315E1B

#315E1B is a dark, moderate green. Relative luminance 0.087; OKLCH L 43.4% C 0.109 H 137.1°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#315E1B
RGBrgb(49, 94, 27)
HSLhsl(100, 55%, 24%)
HSVhsv(100, 71%, 37%)
CMYKcmyk(47.9%, 0%, 71.3%, 63.1%)
CIE-LABlab(35.47, -28.86, 32.40)
CIE-LCHlch(35.47, 43.39, 131.69°)
OKLaboklab(43.41% -0.0799 0.0743)
OKLCHoklch(43.41% 0.109 137.1)
XYZxyz(5.4670, 8.7372, 2.4351)
Luminance0.0874 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315E1B #481B5E
analogous
#525E1B #315E1B #1B5E26
triadic
#315E1B #1B315E #5E1B31
tetradic
#315E1B #1B525E #481B5E #5E261B
square
#315E1B #1B525E #481B5E #5E261B
split-complementary
#315E1B #261B5E #5E1B52
monochromatic
#0C1807 #182E0D #315E1B #4A8E29 #63BD36

Accessibility & contrast

On white

7.64
#315E1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #315E1B
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315E1B#FFFFFF#000000##FFFFFF
##315E1B1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615612
Deuteranopia (green-blind)
#5B5221
Tritanopia (blue-blind)
#2F5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #315e1b;
/* rgb */ color: rgb(49, 94, 27);
/* oklch */ color: oklch(43.4% 0.109 137.1);
Tailwind
colors: {
  custom: {
    50: '#6d8c5b',
    500: '#315e1b',
    950: '#000000',
  },
}
SCSS
$custom: #315e1b;
$custom-light: #6d8c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#315e1b",
  "rgb": {
    "r": 49,
    "g": 94,
    "b": 27
  },
  "hsl": {
    "h": 100.299,
    "s": 55.372,
    "l": 23.725
  },
  "oklch": {
    "l": 0.43405,
    "c": 0.10909,
    "h": 137.1
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#315E1B
secondary
#794194
accent
#49DFAE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #315E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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