#313E0B#313E0B

#313E0B is a dark, moderate yellow-green. Relative luminance 0.041; OKLCH L 34.1% C 0.074 H 123.0°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#313E0B
RGBrgb(49, 62, 11)
HSLhsl(75, 70%, 14%)
HSVhsv(75, 82%, 24%)
CMYKcmyk(21%, 0%, 82.3%, 75.7%)
CIE-LABlab(24.07, -13.84, 27.89)
CIE-LCHlch(24.07, 31.14, 116.39°)
OKLaboklab(34.07% -0.0404 0.0622)
OKLCHoklch(34.07% 0.074 123)
XYZxyz(3.0497, 4.1224, 0.9516)
Luminance0.0412 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E0B #180B3E
analogous
#3E320B #313E0B #183E0B
triadic
#313E0B #0B313E #3E0B31
tetradic
#313E0B #0B3E32 #180B3E #3E0B18
square
#313E0B #0B3E32 #180B3E #3E0B18
split-complementary
#313E0B #0B183E #320B3E
monochromatic
#151A05 #151A05 #313E0B #5A7214 #83A61D

Accessibility & contrast

On white

11.51
#313E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#313E0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E0B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E0B#FFFFFF#000000##FFFFFF
##313E0B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423A04
Deuteranopia (green-blind)
#40390F
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e0b;
/* rgb */ color: rgb(49, 62, 11);
/* oklch */ color: oklch(34.1% 0.074 123.0);
Tailwind
colors: {
  custom: {
    50: '#6b734e',
    500: '#313e0b',
    950: '#000000',
  },
}
SCSS
$custom: #313e0b;
$custom-light: #6b734e;
$custom-dark: #000000;
JSON
{
  "hex": "#313e0b",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 11
  },
  "hsl": {
    "h": 75.294,
    "s": 69.863,
    "l": 14.314
  },
  "oklch": {
    "l": 0.34073,
    "c": 0.07419,
    "h": 123
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#313E0B
secondary
#3F2A7B
accent
#3BED68
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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