#313D0B#313D0B

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

Color values

HEX#313D0B
RGBrgb(49, 61, 11)
HSLhsl(74, 69%, 14%)
HSVhsv(74, 82%, 24%)
CMYKcmyk(19.7%, 0%, 82%, 76.1%)
CIE-LABlab(23.72, -13.26, 27.54)
CIE-LCHlch(23.72, 30.57, 115.72°)
OKLaboklab(33.79% -0.0388 0.0615)
OKLCHoklch(33.79% 0.073 122.2)
XYZxyz(2.9958, 4.0146, 0.9336)
Luminance0.0401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D0B #170B3D
analogous
#3D300B #313D0B #183D0B
triadic
#313D0B #0B313D #3D0B31
tetradic
#313D0B #0B3D30 #170B3D #3D0B18
square
#313D0B #0B3D30 #170B3D #3D0B18
split-complementary
#313D0B #0B183D #300B3D
monochromatic
#151A05 #151A05 #313D0B #5B7114 #84A51E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313D0B#FFFFFF#000000##FFFFFF
##313D0B1.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)
#413904
Deuteranopia (green-blind)
#40380F
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313d0b;
/* rgb */ color: rgb(49, 61, 11);
/* oklch */ color: oklch(33.8% 0.073 122.2);
Tailwind
colors: {
  custom: {
    50: '#6b724e',
    500: '#313d0b',
    950: '#000000',
  },
}
SCSS
$custom: #313d0b;
$custom-light: #6b724e;
$custom-dark: #000000;
JSON
{
  "hex": "#313d0b",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 11
  },
  "hsl": {
    "h": 74.4,
    "s": 69.444,
    "l": 14.118
  },
  "oklch": {
    "l": 0.33789,
    "c": 0.07272,
    "h": 122.2
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#313D0B
secondary
#3D2A7A
accent
#3CEC66
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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