#313D0C#313D0C

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

Color values

HEX#313D0C
RGBrgb(49, 61, 12)
HSLhsl(75, 67%, 14%)
HSVhsv(75, 80%, 24%)
CMYKcmyk(19.7%, 0%, 80.3%, 76.1%)
CIE-LABlab(23.73, -13.19, 27.11)
CIE-LCHlch(23.73, 30.15, 115.95°)
OKLaboklab(33.8% -0.0385 0.0608)
OKLCHoklch(33.8% 0.072 122.3)
XYZxyz(3.0018, 4.0170, 0.9650)
Luminance0.0402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D0C #180C3D
analogous
#3D310C #313D0C #193D0C
triadic
#313D0C #0C313D #3D0C31
tetradic
#313D0C #0C3D31 #180C3D #3D0C19
square
#313D0C #0C3D31 #180C3D #3D0C19
split-complementary
#313D0C #0C193D #310C3D
monochromatic
#151A05 #151A05 #313D0C #5A7016 #83A320

Accessibility & contrast

On white

11.64
#313D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D0C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D0C#FFFFFF#000000##FFFFFF
##313D0C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413905
Deuteranopia (green-blind)
#403810
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313d0c;
/* rgb */ color: rgb(49, 61, 12);
/* oklch */ color: oklch(33.8% 0.072 122.3);
Tailwind
colors: {
  custom: {
    50: '#6b724e',
    500: '#313d0c',
    950: '#000000',
  },
}
SCSS
$custom: #313d0c;
$custom-light: #6b724e;
$custom-dark: #000000;
JSON
{
  "hex": "#313d0c",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 12
  },
  "hsl": {
    "h": 74.694,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.33797,
    "c": 0.07194,
    "h": 122.3
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#313D0C
secondary
#3F2C79
accent
#3EEA68
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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