#315B19#315B19

#315B19 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.5% C 0.106 H 136.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#315B19
RGBrgb(49, 91, 25)
HSLhsl(98, 57%, 23%)
HSVhsv(98, 73%, 36%)
CMYKcmyk(46.2%, 0%, 72.5%, 64.3%)
CIE-LABlab(34.41, -27.66, 32.19)
CIE-LCHlch(34.41, 42.44, 130.68°)
OKLaboklab(42.53% -0.0768 0.0736)
OKLCHoklch(42.53% 0.106 136.2)
XYZxyz(5.1830, 8.2050, 2.2301)
Luminance0.0820 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#315B19 #43195B
analogous
#525B19 #315B19 #195B22
triadic
#315B19 #19315B #5B1931
tetradic
#315B19 #19525B #43195B #5B2219
square
#315B19 #19525B #43195B #5B2219
split-complementary
#315B19 #22195B #5B1952
monochromatic
#0D1807 #172B0C #315B19 #4B8B26 #65BB33

Accessibility & contrast

On white

7.95
#315B19 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#315B19 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #315B19
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##315B19#FFFFFF#000000##FFFFFF
##315B191.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5310
Deuteranopia (green-blind)
#59501F
Tritanopia (blue-blind)
#2F574E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #315b19;
/* rgb */ color: rgb(49, 91, 25);
/* oklch */ color: oklch(42.5% 0.106 136.2);
Tailwind
colors: {
  custom: {
    50: '#6d8a5a',
    500: '#315b19',
    950: '#000000',
  },
}
SCSS
$custom: #315b19;
$custom-light: #6d8a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#315b19",
  "rgb": {
    "r": 49,
    "g": 91,
    "b": 25
  },
  "hsl": {
    "h": 98.182,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42525,
    "c": 0.10634,
    "h": 136.2
  },
  "luminance": 0.08205
}

Semantic roles & 50–950 ramp

primary
#315B19
secondary
#733F91
accent
#48E0A9
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #315B19

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

Preview Lab → · Contrast checker → · Palette generator →

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