#313B07#313B07

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

Color values

HEX#313B07
RGBrgb(49, 59, 7)
HSLhsl(72, 79%, 13%)
HSVhsv(72, 88%, 23%)
CMYKcmyk(16.9%, 0%, 88.1%, 76.9%)
CIE-LABlab(22.99, -12.36, 28.44)
CIE-LCHlch(22.99, 31.01, 113.50°)
OKLaboklab(33.19% -0.0367 0.0629)
OKLCHoklch(33.19% 0.073 120.3)
XYZxyz(2.8690, 3.7962, 0.7826)
Luminance0.0380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B07 #11073B
analogous
#3B2B07 #313B07 #173B07
triadic
#313B07 #07313B #3B0731
tetradic
#313B07 #073B2B #11073B #3B0717
square
#313B07 #073B2B #11073B #3B0717
split-complementary
#313B07 #07173B #2B073B
monochromatic
#171B03 #171B03 #313B07 #5E720D #8CA814

Accessibility & contrast

On white

11.94
#313B07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B07
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B07#FFFFFF#000000##FFFFFF
##313B071.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313b07;
/* rgb */ color: rgb(49, 59, 7);
/* oklch */ color: oklch(33.2% 0.073 120.3);
Tailwind
colors: {
  custom: {
    50: '#6b704b',
    500: '#313b07',
    950: '#000000',
  },
}
SCSS
$custom: #313b07;
$custom-light: #6b704b;
$custom-dark: #000000;
JSON
{
  "hex": "#313b07",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 7
  },
  "hsl": {
    "h": 71.538,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.33187,
    "c": 0.07286,
    "h": 120.3
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#313B07
secondary
#34237A
accent
#33F558
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313B07

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

Preview Lab → · Contrast checker → · Palette generator →

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