#313D17#313D17

#313D17 is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 33.9% C 0.061 H 124.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#313D17
RGBrgb(49, 61, 23)
HSLhsl(79, 45%, 16%)
HSVhsv(79, 62%, 24%)
CMYKcmyk(19.7%, 0%, 62.3%, 76.1%)
CIE-LABlab(23.84, -12.16, 21.51)
CIE-LCHlch(23.84, 24.71, 119.48°)
OKLaboklab(33.93% -0.0344 0.0506)
OKLCHoklch(33.93% 0.061 124.2)
XYZxyz(3.0900, 4.0523, 1.4298)
Luminance0.0405 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D17 #23173D
analogous
#3D3617 #313D17 #1E3D17
triadic
#313D17 #17313D #3D1731
tetradic
#313D17 #173D36 #23173D #3D171E
square
#313D17 #173D36 #23173D #3D171E
split-complementary
#313D17 #171E3D #36173D
monochromatic
#121608 #121608 #313D17 #556928 #789639

Accessibility & contrast

On white

11.60
#313D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D17
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D17#FFFFFF#000000##FFFFFF
##313D171.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403913
Deuteranopia (green-blind)
#3F3919
Tritanopia (blue-blind)
#333A35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313d17;
/* rgb */ color: rgb(49, 61, 23);
/* oklch */ color: oklch(33.9% 0.061 124.2);
Tailwind
colors: {
  custom: {
    50: '#6a7255',
    500: '#313d17',
    950: '#000000',
  },
}
SCSS
$custom: #313d17;
$custom-light: #6a7255;
$custom-dark: #000000;
JSON
{
  "hex": "#313d17",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 23
  },
  "hsl": {
    "h": 78.947,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.33928,
    "c": 0.06117,
    "h": 124.2
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#313D17
secondary
#4E3C74
accent
#53D57C
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #313D17

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

Preview Lab → · Contrast checker → · Palette generator →

#313D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva