#313A08#313A08

#313A08 is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 32.9% C 0.071 H 119.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#313A08
RGBrgb(49, 58, 8)
HSLhsl(71, 76%, 13%)
HSVhsv(71, 86%, 23%)
CMYKcmyk(15.5%, 0%, 86.2%, 77.3%)
CIE-LABlab(22.64, -11.71, 27.67)
CIE-LCHlch(22.64, 30.05, 112.93°)
OKLaboklab(32.91% -0.0348 0.0615)
OKLCHoklch(32.91% 0.071 119.5)
XYZxyz(2.8236, 3.6966, 0.7945)
Luminance0.0370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A08 #11083A
analogous
#3A2A08 #313A08 #183A08
triadic
#313A08 #08313A #3A0831
tetradic
#313A08 #083A2A #11083A #3A0818
square
#313A08 #083A2A #11083A #3A0818
split-complementary
#313A08 #08183A #2A083A
monochromatic
#171B04 #171B04 #313A08 #5E700F #8CA617

Accessibility & contrast

On white

12.07
#313A08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#313A08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A08
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A08#FFFFFF#000000##FFFFFF
##313A081.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3601
Deuteranopia (green-blind)
#3D360C
Tritanopia (blue-blind)
#343631
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a08;
/* rgb */ color: rgb(49, 58, 8);
/* oklch */ color: oklch(32.9% 0.071 119.5);
Tailwind
colors: {
  custom: {
    50: '#6b704c',
    500: '#313a08',
    950: '#000000',
  },
}
SCSS
$custom: #313a08;
$custom-light: #6b704c;
$custom-dark: #000000;
JSON
{
  "hex": "#313a08",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 8
  },
  "hsl": {
    "h": 70.8,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.32912,
    "c": 0.07066,
    "h": 119.5
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#313A08
secondary
#342579
accent
#35F257
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A08

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

Preview Lab → · Contrast checker → · Palette generator →

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