#313C0C#313C0C

#313C0C is a dark, moderate yellow-green. Relative luminance 0.039; OKLCH L 33.5% C 0.070 H 121.6°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#313C0C
RGBrgb(49, 60, 12)
HSLhsl(74, 67%, 14%)
HSVhsv(74, 80%, 24%)
CMYKcmyk(18.3%, 0%, 80%, 76.5%)
CIE-LABlab(23.38, -12.61, 26.75)
CIE-LCHlch(23.38, 29.58, 115.24°)
OKLaboklab(33.51% -0.0369 0.06)
OKLCHoklch(33.51% 0.07 121.6)
XYZxyz(2.9489, 3.9112, 0.9473)
Luminance0.0391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C0C #170C3C
analogous
#3C2F0C #313C0C #193C0C
triadic
#313C0C #0C313C #3C0C31
tetradic
#313C0C #0C3C2F #170C3C #3C0C19
square
#313C0C #0C3C2F #170C3C #3C0C19
split-complementary
#313C0C #0C193C #2F0C3C
monochromatic
#151A05 #151A05 #313C0C #5B6F16 #84A220

Accessibility & contrast

On white

11.78
#313C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#313C0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C0C
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C0C#FFFFFF#000000##FFFFFF
##313C0C1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403805
Deuteranopia (green-blind)
#3F3810
Tritanopia (blue-blind)
#343833
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313c0c;
/* rgb */ color: rgb(49, 60, 12);
/* oklch */ color: oklch(33.5% 0.070 121.6);
Tailwind
colors: {
  custom: {
    50: '#6b714e',
    500: '#313c0c',
    950: '#000000',
  },
}
SCSS
$custom: #313c0c;
$custom-light: #6b714e;
$custom-dark: #000000;
JSON
{
  "hex": "#313c0c",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 12
  },
  "hsl": {
    "h": 73.75,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.33514,
    "c": 0.07046,
    "h": 121.6
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#313C0C
secondary
#3D2C78
accent
#3EEA65
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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