#313D18#313D18

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

Color values

HEX#313D18
RGBrgb(49, 61, 24)
HSLhsl(79, 44%, 17%)
HSVhsv(79, 61%, 24%)
CMYKcmyk(19.7%, 0%, 60.7%, 76.1%)
CIE-LABlab(23.86, -12.04, 20.95)
CIE-LCHlch(23.86, 24.16, 119.89°)
OKLaboklab(33.94% -0.0339 0.0495)
OKLCHoklch(33.94% 0.06 124.4)
XYZxyz(3.1002, 4.0564, 1.4836)
Luminance0.0406 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D18 #24183D
analogous
#3D3718 #313D18 #1F3D18
triadic
#313D18 #18313D #3D1831
tetradic
#313D18 #183D37 #24183D #3D181F
square
#313D18 #183D37 #24183D #3D181F
split-complementary
#313D18 #181F3D #37183D
monochromatic
#121609 #121609 #313D18 #546929 #78953B

Accessibility & contrast

On white

11.59
#313D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D18
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D18#FFFFFF#000000##FFFFFF
##313D181.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313d18;
/* rgb */ color: rgb(49, 61, 24);
/* oklch */ color: oklch(33.9% 0.060 124.4);
Tailwind
colors: {
  custom: {
    50: '#6a7256',
    500: '#313d18',
    950: '#000000',
  },
}
SCSS
$custom: #313d18;
$custom-light: #6a7256;
$custom-dark: #000000;
JSON
{
  "hex": "#313d18",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 24
  },
  "hsl": {
    "h": 79.459,
    "s": 43.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.33943,
    "c": 0.06001,
    "h": 124.4
  },
  "luminance": 0.04056
}

Semantic roles & 50–950 ramp

primary
#313D18
secondary
#4F3D73
accent
#55D37E
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #313D18

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

Preview Lab → · Contrast checker → · Palette generator →

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