#313B18#313B18

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

Color values

HEX#313B18
RGBrgb(49, 59, 24)
HSLhsl(77, 42%, 16%)
HSVhsv(77, 59%, 23%)
CMYKcmyk(16.9%, 0%, 59.3%, 76.9%)
CIE-LABlab(23.16, -10.85, 20.12)
CIE-LCHlch(23.16, 22.86, 118.33°)
OKLaboklab(33.38% -0.0306 0.0477)
OKLCHoklch(33.38% 0.057 122.7)
XYZxyz(2.9955, 3.8468, 1.4487)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B18 #22183B
analogous
#3B3418 #313B18 #203B18
triadic
#313B18 #18313B #3B1831
tetradic
#313B18 #183B34 #22183B #3B1820
square
#313B18 #183B34 #22183B #3B1820
split-complementary
#313B18 #18203B #34183B
monochromatic
#121609 #121609 #313B18 #55672A #79923B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313B18#FFFFFF#000000##FFFFFF
##313B181.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)
#3E3715
Deuteranopia (green-blind)
#3D371A
Tritanopia (blue-blind)
#333833
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b18;
/* rgb */ color: rgb(49, 59, 24);
/* oklch */ color: oklch(33.4% 0.057 122.7);
Tailwind
colors: {
  custom: {
    50: '#6a7156',
    500: '#313b18',
    950: '#000000',
  },
}
SCSS
$custom: #313b18;
$custom-light: #6a7156;
$custom-dark: #000000;
JSON
{
  "hex": "#313b18",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 24
  },
  "hsl": {
    "h": 77.143,
    "s": 42.169,
    "l": 16.275
  },
  "oklch": {
    "l": 0.33381,
    "c": 0.05666,
    "h": 122.7
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#313B18
secondary
#4C3E71
accent
#56D279
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060703
muted
#7A7A78

Preview Lab

Preview with #313B18

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

Preview Lab → · Contrast checker → · Palette generator →

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