#313B0C#313B0C

#313B0C is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 33.2% C 0.069 H 120.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#313B0C
RGBrgb(49, 59, 12)
HSLhsl(73, 66%, 14%)
HSVhsv(73, 80%, 23%)
CMYKcmyk(16.9%, 0%, 79.7%, 76.9%)
CIE-LABlab(23.02, -12.02, 26.39)
CIE-LCHlch(23.02, 29.00, 114.49°)
OKLaboklab(33.23% -0.0353 0.0593)
OKLCHoklch(33.23% 0.069 120.7)
XYZxyz(2.8970, 3.8074, 0.9300)
Luminance0.0381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B0C #160C3B
analogous
#3B2E0C #313B0C #1A3B0C
triadic
#313B0C #0C313B #3B0C31
tetradic
#313B0C #0C3B2E #160C3B #3B0C1A
square
#313B0C #0C3B2E #160C3B #3B0C1A
split-complementary
#313B0C #0C1A3B #2E0C3B
monochromatic
#151905 #151905 #313B0C #5B6E16 #85A121

Accessibility & contrast

On white

11.92
#313B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#313B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B0C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B0C#FFFFFF#000000##FFFFFF
##313B0C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3705
Deuteranopia (green-blind)
#3E3710
Tritanopia (blue-blind)
#343732
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b0c;
/* rgb */ color: rgb(49, 59, 12);
/* oklch */ color: oklch(33.2% 0.069 120.7);
Tailwind
colors: {
  custom: {
    50: '#6b704e',
    500: '#313b0c',
    950: '#000000',
  },
}
SCSS
$custom: #313b0c;
$custom-light: #6b704e;
$custom-dark: #000000;
JSON
{
  "hex": "#313b0c",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 12
  },
  "hsl": {
    "h": 72.766,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3323,
    "c": 0.06899,
    "h": 120.7
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#313B0C
secondary
#3C2C77
accent
#3FE963
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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