#313C08#313C08

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

Color values

HEX#313C08
RGBrgb(49, 60, 8)
HSLhsl(73, 76%, 13%)
HSVhsv(73, 87%, 24%)
CMYKcmyk(18.3%, 0%, 86.7%, 76.5%)
CIE-LABlab(23.35, -12.88, 28.40)
CIE-LCHlch(23.35, 31.18, 114.40°)
OKLaboklab(33.48% -0.0381 0.0629)
OKLCHoklch(33.48% 0.074 121.2)
XYZxyz(2.9264, 3.9022, 0.8287)
Luminance0.0390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C08 #13083C
analogous
#3C2D08 #313C08 #173C08
triadic
#313C08 #08313C #3C0831
tetradic
#313C08 #083C2D #13083C #3C0817
square
#313C08 #083C2D #13083C #3C0817
split-complementary
#313C08 #08173C #2D083C
monochromatic
#161B04 #161B04 #313C08 #5D720F #89A816

Accessibility & contrast

On white

11.80
#313C08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C08
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C08#FFFFFF#000000##FFFFFF
##313C081.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313c08;
/* rgb */ color: rgb(49, 60, 8);
/* oklch */ color: oklch(33.5% 0.074 121.2);
Tailwind
colors: {
  custom: {
    50: '#6b714c',
    500: '#313c08',
    950: '#000000',
  },
}
SCSS
$custom: #313c08;
$custom-light: #6b714c;
$custom-dark: #000000;
JSON
{
  "hex": "#313c08",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 8
  },
  "hsl": {
    "h": 72.692,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.3348,
    "c": 0.07351,
    "h": 121.2
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#313C08
secondary
#37257B
accent
#35F35D
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313C08

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

Preview Lab → · Contrast checker → · Palette generator →

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