#313B0A#313B0A

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

Color values

HEX#313B0A
RGBrgb(49, 59, 10)
HSLhsl(72, 71%, 14%)
HSVhsv(72, 83%, 23%)
CMYKcmyk(16.9%, 0%, 83.1%, 76.9%)
CIE-LABlab(23.01, -12.16, 27.24)
CIE-LCHlch(23.01, 29.83, 114.06°)
OKLaboklab(33.21% -0.0359 0.0608)
OKLCHoklch(33.21% 0.071 120.5)
XYZxyz(2.8854, 3.8028, 0.8691)
Luminance0.0380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B0A #140A3B
analogous
#3B2C0A #313B0A #183B0A
triadic
#313B0A #0A313B #3B0A31
tetradic
#313B0A #0A3B2C #140A3B #3B0A18
square
#313B0A #0A3B2C #140A3B #3B0A18
split-complementary
#313B0A #0A183B #2C0A3B
monochromatic
#161A04 #161A04 #313B0A #5C6F13 #88A41C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313B0A#FFFFFF#000000##FFFFFF
##313B0A1.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)
#3F3703
Deuteranopia (green-blind)
#3E370E
Tritanopia (blue-blind)
#343732
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #313b0a;
/* rgb */ color: rgb(49, 59, 10);
/* oklch */ color: oklch(33.2% 0.071 120.5);
Tailwind
colors: {
  custom: {
    50: '#6b704d',
    500: '#313b0a',
    950: '#000000',
  },
}
SCSS
$custom: #313b0a;
$custom-light: #6b704d;
$custom-dark: #000000;
JSON
{
  "hex": "#313b0a",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 10
  },
  "hsl": {
    "h": 72.245,
    "s": 71.014,
    "l": 13.529
  },
  "oklch": {
    "l": 0.33213,
    "c": 0.07056,
    "h": 120.5
  },
  "luminance": 0.03803
}

Semantic roles & 50–950 ramp

primary
#313B0A
secondary
#392878
accent
#3AEE5F
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #313B0A

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

Preview Lab → · Contrast checker → · Palette generator →

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