#313A0A#313A0A

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

Color values

HEX#313A0A
RGBrgb(49, 58, 10)
HSLhsl(71, 71%, 13%)
HSVhsv(71, 83%, 23%)
CMYKcmyk(15.5%, 0%, 82.8%, 77.3%)
CIE-LABlab(22.66, -11.57, 26.88)
CIE-LCHlch(22.66, 29.26, 113.30°)
OKLaboklab(32.93% -0.0342 0.0601)
OKLCHoklch(32.93% 0.069 119.7)
XYZxyz(2.8345, 3.7010, 0.8521)
Luminance0.0370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A0A #130A3A
analogous
#3A2B0A #313A0A #193A0A
triadic
#313A0A #0A313A #3A0A31
tetradic
#313A0A #0A3A2B #130A3A #3A0A19
square
#313A0A #0A3A2B #130A3A #3A0A19
split-complementary
#313A0A #0A193A #2B0A3A
monochromatic
#161A05 #161A05 #313A0A #5D6E13 #89A21C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313A0A#FFFFFF#000000##FFFFFF
##313A0A1.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)
#3E3603
Deuteranopia (green-blind)
#3D360E
Tritanopia (blue-blind)
#343631
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a0a;
/* rgb */ color: rgb(49, 58, 10);
/* oklch */ color: oklch(32.9% 0.069 119.7);
Tailwind
colors: {
  custom: {
    50: '#6b704d',
    500: '#313a0a',
    950: '#000000',
  },
}
SCSS
$custom: #313a0a;
$custom-light: #6b704d;
$custom-dark: #000000;
JSON
{
  "hex": "#313a0a",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 10
  },
  "hsl": {
    "h": 71.25,
    "s": 70.588,
    "l": 13.333
  },
  "oklch": {
    "l": 0.3293,
    "c": 0.06912,
    "h": 119.7
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#313A0A
secondary
#372877
accent
#3AED5C
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313A0A

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

Preview Lab → · Contrast checker → · Palette generator →

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