#313D08#313D08

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

Color values

HEX#313D08
RGBrgb(49, 61, 8)
HSLhsl(74, 77%, 14%)
HSVhsv(74, 87%, 24%)
CMYKcmyk(19.7%, 0%, 86.9%, 76.1%)
CIE-LABlab(23.70, -13.46, 28.75)
CIE-LCHlch(23.70, 31.75, 115.09°)
OKLaboklab(33.76% -0.0396 0.0636)
OKLCHoklch(33.76% 0.075 121.9)
XYZxyz(2.9792, 4.0080, 0.8463)
Luminance0.0401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D08 #14083D
analogous
#3D2E08 #313D08 #163D08
triadic
#313D08 #08313D #3D0831
tetradic
#313D08 #083D2E #14083D #3D0816
square
#313D08 #083D2E #14083D #3D0816
split-complementary
#313D08 #08163D #2E083D
monochromatic
#161B04 #161B04 #313D08 #5C730F #88A916

Accessibility & contrast

On white

11.66
#313D08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313D08
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D08#FFFFFF#000000##FFFFFF
##313D081.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413901
Deuteranopia (green-blind)
#40380D
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313d08;
/* rgb */ color: rgb(49, 61, 8);
/* oklch */ color: oklch(33.8% 0.075 121.9);
Tailwind
colors: {
  custom: {
    50: '#6b724c',
    500: '#313d08',
    950: '#000000',
  },
}
SCSS
$custom: #313d08;
$custom-light: #6b724c;
$custom-dark: #000000;
JSON
{
  "hex": "#313d08",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 8
  },
  "hsl": {
    "h": 73.585,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.33764,
    "c": 0.07493,
    "h": 121.9
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#313D08
secondary
#39257C
accent
#34F360
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070801
muted
#7A7B77

Preview Lab

Preview with #313D08

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

Preview Lab → · Contrast checker → · Palette generator →

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