#313C0F#313C0F

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

Color values

HEX#313C0F
RGBrgb(49, 60, 15)
HSLhsl(75, 60%, 15%)
HSVhsv(75, 75%, 24%)
CMYKcmyk(18.3%, 0%, 75%, 76.5%)
CIE-LABlab(23.40, -12.38, 25.34)
CIE-LCHlch(23.40, 28.20, 116.03°)
OKLaboklab(33.54% -0.0359 0.0576)
OKLCHoklch(33.54% 0.068 121.9)
XYZxyz(2.9687, 3.9192, 1.0519)
Luminance0.0392 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C0F #1A0F3C
analogous
#3C310F #313C0F #1A3C0F
triadic
#313C0F #0F313C #3C0F31
tetradic
#313C0F #0F3C31 #1A0F3C #3C0F1A
square
#313C0F #0F3C31 #1A0F3C #3C0F1A
split-complementary
#313C0F #0F1A3C #310F3C
monochromatic
#141806 #141806 #313C0F #596D1B #819E27

Accessibility & contrast

On white

11.77
#313C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313C0F
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C0F#FFFFFF#000000##FFFFFF
##313C0F1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403809
Deuteranopia (green-blind)
#3F3812
Tritanopia (blue-blind)
#343933
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #313c0f;
/* rgb */ color: rgb(49, 60, 15);
/* oklch */ color: oklch(33.5% 0.068 121.9);
Tailwind
colors: {
  custom: {
    50: '#6b7150',
    500: '#313c0f',
    950: '#000000',
  },
}
SCSS
$custom: #313c0f;
$custom-light: #6b7150;
$custom-dark: #000000;
JSON
{
  "hex": "#313c0f",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 15
  },
  "hsl": {
    "h": 74.667,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.33544,
    "c": 0.06787,
    "h": 121.9
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#313C0F
secondary
#413076
accent
#45E36B
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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