#313A07#313A07

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

Color values

HEX#313A07
RGBrgb(49, 58, 7)
HSLhsl(71, 78%, 13%)
HSVhsv(71, 88%, 23%)
CMYKcmyk(15.5%, 0%, 87.9%, 77.3%)
CIE-LABlab(22.63, -11.77, 28.07)
CIE-LCHlch(22.63, 30.44, 112.75°)
OKLaboklab(32.9% -0.0351 0.0622)
OKLCHoklch(32.9% 0.071 119.4)
XYZxyz(2.8181, 3.6944, 0.7656)
Luminance0.0369 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A07 #10073A
analogous
#3A2907 #313A07 #173A07
triadic
#313A07 #07313A #3A0731
tetradic
#313A07 #073A29 #10073A #3A0717
square
#313A07 #073A29 #10073A #3A0717
split-complementary
#313A07 #07173A #29073A
monochromatic
#171B03 #171B03 #313A07 #5F710E #8DA714

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313A07#FFFFFF#000000##FFFFFF
##313A071.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)
#3D360C
Tritanopia (blue-blind)
#343630
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a07;
/* rgb */ color: rgb(49, 58, 7);
/* oklch */ color: oklch(32.9% 0.071 119.4);
Tailwind
colors: {
  custom: {
    50: '#6b704b',
    500: '#313a07',
    950: '#000000',
  },
}
SCSS
$custom: #313a07;
$custom-light: #6b704b;
$custom-dark: #000000;
JSON
{
  "hex": "#313a07",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 7
  },
  "hsl": {
    "h": 70.588,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.07145,
    "h": 119.4
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#313A07
secondary
#332379
accent
#33F555
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A07

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

Preview Lab → · Contrast checker → · Palette generator →

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