#313C0B#313C0B

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

Color values

HEX#313C0B
RGBrgb(49, 60, 11)
HSLhsl(73, 69%, 14%)
HSVhsv(73, 82%, 24%)
CMYKcmyk(18.3%, 0%, 81.7%, 76.5%)
CIE-LABlab(23.37, -12.68, 27.19)
CIE-LCHlch(23.37, 30.00, 115.01°)
OKLaboklab(33.51% -0.0372 0.0608)
OKLCHoklch(33.51% 0.071 121.5)
XYZxyz(2.9429, 3.9088, 0.9160)
Luminance0.0391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C0B #160B3C
analogous
#3C2F0B #313C0B #193C0B
triadic
#313C0B #0B313C #3C0B31
tetradic
#313C0B #0B3C2F #160B3C #3C0B19
square
#313C0B #0B3C2F #160B3C #3C0B19
split-complementary
#313C0B #0B193C #2F0B3C
monochromatic
#151A05 #151A05 #313C0B #5B7014 #85A31E

Accessibility & contrast

On white

11.79
#313C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C0B
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C0B#FFFFFF#000000##FFFFFF
##313C0B1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403804
Deuteranopia (green-blind)
#3F380F
Tritanopia (blue-blind)
#343832
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313c0b;
/* rgb */ color: rgb(49, 60, 11);
/* oklch */ color: oklch(33.5% 0.071 121.5);
Tailwind
colors: {
  custom: {
    50: '#6b714e',
    500: '#313c0b',
    950: '#000000',
  },
}
SCSS
$custom: #313c0b;
$custom-light: #6b714e;
$custom-dark: #000000;
JSON
{
  "hex": "#313c0b",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 11
  },
  "hsl": {
    "h": 73.469,
    "s": 69.014,
    "l": 13.922
  },
  "oklch": {
    "l": 0.33505,
    "c": 0.07126,
    "h": 121.5
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#313C0B
secondary
#3C2A79
accent
#3CEC63
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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