#313A06#313A06

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

Color values

HEX#313A06
RGBrgb(49, 58, 6)
HSLhsl(70, 81%, 13%)
HSVhsv(70, 90%, 23%)
CMYKcmyk(15.5%, 0%, 89.7%, 77.3%)
CIE-LABlab(22.63, -11.84, 28.47)
CIE-LCHlch(22.63, 30.84, 112.58°)
OKLaboklab(32.9% -0.0354 0.063)
OKLCHoklch(32.9% 0.072 119.4)
XYZxyz(2.8126, 3.6922, 0.7368)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A06 #0F063A
analogous
#3A2906 #313A06 #173A06
triadic
#313A06 #06313A #3A0631
tetradic
#313A06 #063A29 #0F063A #3A0617
square
#313A06 #063A29 #0F063A #3A0617
split-complementary
#313A06 #06173A #29063A
monochromatic
#171C03 #171C03 #313A06 #60710C #8FA911

Accessibility & contrast

On white

12.08
#313A06 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A06
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A06#FFFFFF#000000##FFFFFF
##313A061.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3600
Deuteranopia (green-blind)
#3D360B
Tritanopia (blue-blind)
#353630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a06;
/* rgb */ color: rgb(49, 58, 6);
/* oklch */ color: oklch(32.9% 0.072 119.4);
Tailwind
colors: {
  custom: {
    50: '#6b704b',
    500: '#313a06',
    950: '#000000',
  },
}
SCSS
$custom: #313a06;
$custom-light: #6b704b;
$custom-dark: #000000;
JSON
{
  "hex": "#313a06",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 6
  },
  "hsl": {
    "h": 70.385,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.32895,
    "c": 0.07224,
    "h": 119.4
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#313A06
secondary
#31227A
accent
#30F853
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A06

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

Preview Lab → · Contrast checker → · Palette generator →

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