#313A0C#313A0C

#313A0C is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 32.9% C 0.068 H 119.9°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#313A0C
RGBrgb(49, 58, 12)
HSLhsl(72, 66%, 14%)
HSVhsv(72, 79%, 23%)
CMYKcmyk(15.5%, 0%, 79.3%, 77.3%)
CIE-LABlab(22.67, -11.43, 26.03)
CIE-LCHlch(22.67, 28.43, 113.71°)
OKLaboklab(32.95% -0.0336 0.0586)
OKLCHoklch(32.95% 0.068 119.9)
XYZxyz(2.8461, 3.7056, 0.9131)
Luminance0.0371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A0C #150C3A
analogous
#3A2C0C #313A0C #1A3A0C
triadic
#313A0C #0C313A #3A0C31
tetradic
#313A0C #0C3A2C #150C3A #3A0C1A
square
#313A0C #0C3A2C #150C3A #3A0C1A
split-complementary
#313A0C #0C1A3A #2C0C3A
monochromatic
#151905 #151905 #313A0C #5C6D16 #879F21

Accessibility & contrast

On white

12.06
#313A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A0C
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A0C#FFFFFF#000000##FFFFFF
##313A0C1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3606
Deuteranopia (green-blind)
#3D3610
Tritanopia (blue-blind)
#343631
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a0c;
/* rgb */ color: rgb(49, 58, 12);
/* oklch */ color: oklch(32.9% 0.068 119.9);
Tailwind
colors: {
  custom: {
    50: '#6b704e',
    500: '#313a0c',
    950: '#000000',
  },
}
SCSS
$custom: #313a0c;
$custom-light: #6b704e;
$custom-dark: #000000;
JSON
{
  "hex": "#313a0c",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 12
  },
  "hsl": {
    "h": 71.739,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.32948,
    "c": 0.06752,
    "h": 119.9
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#313A0C
secondary
#3A2C76
accent
#3FE960
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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