#313A0B#313A0B

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

Color values

HEX#313A0B
RGBrgb(49, 58, 11)
HSLhsl(71, 68%, 14%)
HSVhsv(71, 81%, 23%)
CMYKcmyk(15.5%, 0%, 81%, 77.3%)
CIE-LABlab(22.67, -11.50, 26.47)
CIE-LCHlch(22.67, 28.86, 113.49°)
OKLaboklab(32.94% -0.0339 0.0593)
OKLCHoklch(32.94% 0.068 119.8)
XYZxyz(2.8401, 3.7033, 0.8817)
Luminance0.0370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A0B #140B3A
analogous
#3A2B0B #313A0B #193A0B
triadic
#313A0B #0B313A #3A0B31
tetradic
#313A0B #0B3A2B #140B3A #3A0B19
square
#313A0B #0B3A2B #140B3A #3A0B19
split-complementary
#313A0B #0B193A #2B0B3A
monochromatic
#161A05 #161A05 #313A0B #5C6D15 #88A11F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313A0B#FFFFFF#000000##FFFFFF
##313A0B1.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)
#3E3604
Deuteranopia (green-blind)
#3D360F
Tritanopia (blue-blind)
#343631
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a0b;
/* rgb */ color: rgb(49, 58, 11);
/* oklch */ color: oklch(32.9% 0.068 119.8);
Tailwind
colors: {
  custom: {
    50: '#6b704d',
    500: '#313a0b',
    950: '#000000',
  },
}
SCSS
$custom: #313a0b;
$custom-light: #6b704d;
$custom-dark: #000000;
JSON
{
  "hex": "#313a0b",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 11
  },
  "hsl": {
    "h": 71.489,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.06834,
    "h": 119.8
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#313A0B
secondary
#392A77
accent
#3DEB5E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A0B

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

Preview Lab → · Contrast checker → · Palette generator →

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