#313D0F#313D0F

#313D0F is a dark, moderate yellow-green. Relative luminance 0.040; OKLCH L 33.8% C 0.069 H 122.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#313D0F
RGBrgb(49, 61, 15)
HSLhsl(76, 61%, 15%)
HSVhsv(76, 75%, 24%)
CMYKcmyk(19.7%, 0%, 75.4%, 76.1%)
CIE-LABlab(23.75, -12.96, 25.71)
CIE-LCHlch(23.75, 28.79, 116.75°)
OKLaboklab(33.83% -0.0375 0.0584)
OKLCHoklch(33.83% 0.069 122.7)
XYZxyz(3.0216, 4.0249, 1.0695)
Luminance0.0403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313D0F #1B0F3D
analogous
#3D320F #313D0F #1A3D0F
triadic
#313D0F #0F313D #3D0F31
tetradic
#313D0F #0F3D32 #1B0F3D #3D0F1A
square
#313D0F #0F3D32 #1B0F3D #3D0F1A
split-complementary
#313D0F #0F1A3D #320F3D
monochromatic
#141906 #141906 #313D0F #586E1B #809F27

Accessibility & contrast

On white

11.63
#313D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#313D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313D0F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313D0F#FFFFFF#000000##FFFFFF
##313D0F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413909
Deuteranopia (green-blind)
#3F3812
Tritanopia (blue-blind)
#343A34
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313d0f;
/* rgb */ color: rgb(49, 61, 15);
/* oklch */ color: oklch(33.8% 0.069 122.7);
Tailwind
colors: {
  custom: {
    50: '#6b7250',
    500: '#313d0f',
    950: '#000000',
  },
}
SCSS
$custom: #313d0f;
$custom-light: #6b7250;
$custom-dark: #000000;
JSON
{
  "hex": "#313d0f",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 15
  },
  "hsl": {
    "h": 75.652,
    "s": 60.526,
    "l": 14.902
  },
  "oklch": {
    "l": 0.33827,
    "c": 0.0694,
    "h": 122.7
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#313D0F
secondary
#433077
accent
#44E46E
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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