#313B17#313B17

#313B17 is a dark, muted yellow-green. Relative luminance 0.038; OKLCH L 33.4% C 0.058 H 122.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#313B17
RGBrgb(49, 59, 23)
HSLhsl(77, 44%, 16%)
HSVhsv(77, 61%, 23%)
CMYKcmyk(16.9%, 0%, 61%, 76.9%)
CIE-LABlab(23.14, -10.97, 20.69)
CIE-LCHlch(23.14, 23.42, 117.93°)
OKLaboklab(33.37% -0.031 0.0488)
OKLCHoklch(33.37% 0.058 122.5)
XYZxyz(2.9853, 3.8428, 1.3949)
Luminance0.0384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B17 #21173B
analogous
#3B3317 #313B17 #1F3B17
triadic
#313B17 #17313B #3B1731
tetradic
#313B17 #173B33 #21173B #3B171F
square
#313B17 #173B33 #21173B #3B171F
split-complementary
#313B17 #171F3B #33173B
monochromatic
#121609 #121609 #313B17 #566728 #7A9339

Accessibility & contrast

On white

11.87
#313B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#313B17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B17
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B17#FFFFFF#000000##FFFFFF
##313B171.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3714
Deuteranopia (green-blind)
#3D3719
Tritanopia (blue-blind)
#333833
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b17;
/* rgb */ color: rgb(49, 59, 23);
/* oklch */ color: oklch(33.4% 0.058 122.5);
Tailwind
colors: {
  custom: {
    50: '#6a7055',
    500: '#313b17',
    950: '#000000',
  },
}
SCSS
$custom: #313b17;
$custom-light: #6a7055;
$custom-dark: #000000;
JSON
{
  "hex": "#313b17",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 23
  },
  "hsl": {
    "h": 76.667,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.05787,
    "h": 122.5
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#313B17
secondary
#4B3C72
accent
#54D478
background
#F6F6F5
surface
#EBECE8
border
#C6C7C4
text
#060703
muted
#7A7A78

Preview Lab

Preview with #313B17

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

Preview Lab → · Contrast checker → · Palette generator →

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