#313B0B#313B0B

#313B0B is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 33.2% C 0.070 H 120.6°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#313B0B
RGBrgb(49, 59, 11)
HSLhsl(73, 69%, 14%)
HSVhsv(73, 81%, 23%)
CMYKcmyk(16.9%, 0%, 81.4%, 76.9%)
CIE-LABlab(23.02, -12.10, 26.83)
CIE-LCHlch(23.02, 29.43, 114.27°)
OKLaboklab(33.22% -0.0356 0.0601)
OKLCHoklch(33.22% 0.07 120.6)
XYZxyz(2.8910, 3.8051, 0.8987)
Luminance0.0381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B0B #150B3B
analogous
#3B2D0B #313B0B #193B0B
triadic
#313B0B #0B313B #3B0B31
tetradic
#313B0B #0B3B2D #150B3B #3B0B19
square
#313B0B #0B3B2D #150B3B #3B0B19
split-complementary
#313B0B #0B193B #2D0B3B
monochromatic
#151A05 #151A05 #313B0B #5C6F15 #87A21E

Accessibility & contrast

On white

11.93
#313B0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B0B
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B0B#FFFFFF#000000##FFFFFF
##313B0B1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3704
Deuteranopia (green-blind)
#3E370F
Tritanopia (blue-blind)
#343732
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b0b;
/* rgb */ color: rgb(49, 59, 11);
/* oklch */ color: oklch(33.2% 0.070 120.6);
Tailwind
colors: {
  custom: {
    50: '#6b704d',
    500: '#313b0b',
    950: '#000000',
  },
}
SCSS
$custom: #313b0b;
$custom-light: #6b704d;
$custom-dark: #000000;
JSON
{
  "hex": "#313b0b",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 11
  },
  "hsl": {
    "h": 72.5,
    "s": 68.571,
    "l": 13.725
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.06979,
    "h": 120.6
  },
  "luminance": 0.03805
}

Semantic roles & 50–950 ramp

primary
#313B0B
secondary
#3A2A78
accent
#3CEB61
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313B0B

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

Preview Lab → · Contrast checker → · Palette generator →

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