#313B08#313B08

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

Color values

HEX#313B08
RGBrgb(49, 59, 8)
HSLhsl(72, 76%, 13%)
HSVhsv(72, 86%, 23%)
CMYKcmyk(16.9%, 0%, 86.4%, 76.9%)
CIE-LABlab(22.99, -12.30, 28.04)
CIE-LCHlch(22.99, 30.62, 113.68°)
OKLaboklab(33.2% -0.0365 0.0622)
OKLCHoklch(33.2% 0.072 120.4)
XYZxyz(2.8745, 3.7984, 0.8114)
Luminance0.0380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B08 #12083B
analogous
#3B2B08 #313B08 #173B08
triadic
#313B08 #08313B #3B0831
tetradic
#313B08 #083B2B #12083B #3B0817
square
#313B08 #083B2B #12083B #3B0817
split-complementary
#313B08 #08173B #2B083B
monochromatic
#161B04 #161B04 #313B08 #5E710F #8BA717

Accessibility & contrast

On white

11.93
#313B08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B08
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B08#FFFFFF#000000##FFFFFF
##313B081.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3701
Deuteranopia (green-blind)
#3E370D
Tritanopia (blue-blind)
#343731
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b08;
/* rgb */ color: rgb(49, 59, 8);
/* oklch */ color: oklch(33.2% 0.072 120.4);
Tailwind
colors: {
  custom: {
    50: '#6b704c',
    500: '#313b08',
    950: '#000000',
  },
}
SCSS
$custom: #313b08;
$custom-light: #6b704c;
$custom-dark: #000000;
JSON
{
  "hex": "#313b08",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 8
  },
  "hsl": {
    "h": 71.765,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.33196,
    "c": 0.07208,
    "h": 120.4
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#313B08
secondary
#36257A
accent
#35F35A
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313B08

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

Preview Lab → · Contrast checker → · Palette generator →

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