#313D0A#313D0A

#313D0A is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.8% C 0.073 H 122.1°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#313D0A
RGBrgb(49, 61, 10)
HSLhsl(74, 72%, 14%)
HSVhsv(74, 84%, 24%)
CMYKcmyk(19.7%, 0%, 83.6%, 76.1%)
CIE-LABlab(23.71, -13.33, 27.95)
CIE-LCHlch(23.71, 30.97, 115.50°)
OKLaboklab(33.78% -0.0391 0.0622)
OKLCHoklch(33.78% 0.073 122.1)
XYZxyz(2.9902, 4.0124, 0.9040)
Luminance0.0401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D0A #160A3D
analogous
#3D300A #313D0A #183D0A
triadic
#313D0A #0A313D #3D0A31
tetradic
#313D0A #0A3D30 #160A3D #3D0A18
square
#313D0A #0A3D30 #160A3D #3D0A18
split-complementary
#313D0A #0A183D #300A3D
monochromatic
#151A04 #151A04 #313D0A #5B7213 #85A61B

Accessibility & contrast

On white

11.65
#313D0A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#313D0A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D0A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D0A#FFFFFF#000000##FFFFFF
##313D0A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413903
Deuteranopia (green-blind)
#40380E
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313d0a;
/* rgb */ color: rgb(49, 61, 10);
/* oklch */ color: oklch(33.8% 0.073 122.1);
Tailwind
colors: {
  custom: {
    50: '#6b724d',
    500: '#313d0a',
    950: '#000000',
  },
}
SCSS
$custom: #313d0a;
$custom-light: #6b724d;
$custom-dark: #000000;
JSON
{
  "hex": "#313d0a",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 10
  },
  "hsl": {
    "h": 74.118,
    "s": 71.831,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3378,
    "c": 0.07347,
    "h": 122.1
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#313D0A
secondary
#3C287A
accent
#39EF64
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313D0A

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

Preview Lab → · Contrast checker → · Palette generator →

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