#313B0F#313B0F

#313B0F is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 33.3% C 0.066 H 121.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#313B0F
RGBrgb(49, 59, 15)
HSLhsl(74, 59%, 15%)
HSVhsv(74, 75%, 23%)
CMYKcmyk(16.9%, 0%, 74.6%, 76.9%)
CIE-LABlab(23.05, -11.79, 24.97)
CIE-LCHlch(23.05, 27.61, 115.27°)
OKLaboklab(33.26% -0.0342 0.0568)
OKLCHoklch(33.26% 0.066 121.1)
XYZxyz(2.9168, 3.8154, 1.0346)
Luminance0.0382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B0F #190F3B
analogous
#3B2F0F #313B0F #1B3B0F
triadic
#313B0F #0F313B #3B0F31
tetradic
#313B0F #0F3B2F #190F3B #3B0F1B
square
#313B0F #0F3B2F #190F3B #3B0F1B
split-complementary
#313B0F #0F1B3B #2F0F3B
monochromatic
#141806 #141806 #313B0F #5A6C1B #829D28

Accessibility & contrast

On white

11.91
#313B0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B0F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B0F#FFFFFF#000000##FFFFFF
##313B0F1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3709
Deuteranopia (green-blind)
#3E3712
Tritanopia (blue-blind)
#343832
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b0f;
/* rgb */ color: rgb(49, 59, 15);
/* oklch */ color: oklch(33.3% 0.066 121.1);
Tailwind
colors: {
  custom: {
    50: '#6b7050',
    500: '#313b0f',
    950: '#000000',
  },
}
SCSS
$custom: #313b0f;
$custom-light: #6b7050;
$custom-dark: #000000;
JSON
{
  "hex": "#313b0f",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 15
  },
  "hsl": {
    "h": 73.636,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33261,
    "c": 0.06635,
    "h": 121.1
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#313B0F
secondary
#403075
accent
#45E369
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #313B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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