#313A0F#313A0F

#313A0F is a dark, moderate yellow-green. Relative luminance 0.037; OKLCH L 33.0% C 0.065 H 120.2°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#313A0F
RGBrgb(49, 58, 15)
HSLhsl(73, 59%, 14%)
HSVhsv(73, 74%, 23%)
CMYKcmyk(15.5%, 0%, 74.1%, 77.3%)
CIE-LABlab(22.70, -11.19, 24.60)
CIE-LCHlch(22.70, 27.02, 114.46°)
OKLaboklab(32.98% -0.0326 0.0561)
OKLCHoklch(32.98% 0.065 120.2)
XYZxyz(2.8659, 3.7136, 1.0177)
Luminance0.0371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A0F #180F3A
analogous
#3A2E0F #313A0F #1C3A0F
triadic
#313A0F #0F313A #3A0F31
tetradic
#313A0F #0F3A2E #180F3A #3A0F1C
square
#313A0F #0F3A2E #180F3A #3A0F1C
split-complementary
#313A0F #0F1C3A #2E0F3A
monochromatic
#151806 #151806 #313A0F #5A6B1C #839B28

Accessibility & contrast

On white

12.05
#313A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A0F
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A0F#FFFFFF#000000##FFFFFF
##313A0F1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3609
Deuteranopia (green-blind)
#3D3612
Tritanopia (blue-blind)
#343731
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #313a0f;
/* rgb */ color: rgb(49, 58, 15);
/* oklch */ color: oklch(33.0% 0.065 120.2);
Tailwind
colors: {
  custom: {
    50: '#6b7050',
    500: '#313a0f',
    950: '#000000',
  },
}
SCSS
$custom: #313a0f;
$custom-light: #6b7050;
$custom-dark: #000000;
JSON
{
  "hex": "#313a0f",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 15
  },
  "hsl": {
    "h": 72.558,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.32979,
    "c": 0.06484,
    "h": 120.2
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#313A0F
secondary
#3F3074
accent
#46E266
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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