#313C07#313C07

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

Color values

HEX#313C07
RGBrgb(49, 60, 7)
HSLhsl(72, 79%, 13%)
HSVhsv(72, 88%, 24%)
CMYKcmyk(18.3%, 0%, 88.3%, 76.5%)
CIE-LABlab(23.34, -12.95, 28.80)
CIE-LCHlch(23.34, 31.57, 114.21°)
OKLaboklab(33.47% -0.0383 0.0636)
OKLCHoklch(33.47% 0.074 121.1)
XYZxyz(2.9209, 3.9000, 0.7999)
Luminance0.0390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C07 #12073C
analogous
#3C2C07 #313C07 #163C07
triadic
#313C07 #07313C #3C0731
tetradic
#313C07 #073C2C #12073C #3C0716
square
#313C07 #073C2C #12073C #3C0716
split-complementary
#313C07 #07163C #2C073C
monochromatic
#161B03 #161B03 #313C07 #5E730D #8BAA14

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313C07#FFFFFF#000000##FFFFFF
##313C071.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)
#403800
Deuteranopia (green-blind)
#3F380C
Tritanopia (blue-blind)
#343832
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313c07;
/* rgb */ color: rgb(49, 60, 7);
/* oklch */ color: oklch(33.5% 0.074 121.1);
Tailwind
colors: {
  custom: {
    50: '#6b714c',
    500: '#313c07',
    950: '#000000',
  },
}
SCSS
$custom: #313c07;
$custom-light: #6b714c;
$custom-dark: #000000;
JSON
{
  "hex": "#313c07",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 7
  },
  "hsl": {
    "h": 72.453,
    "s": 79.104,
    "l": 13.137
  },
  "oklch": {
    "l": 0.33471,
    "c": 0.07426,
    "h": 121.1
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#313C07
secondary
#36237B
accent
#32F65B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313C07

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

Preview Lab → · Contrast checker → · Palette generator →

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