#313F0B#313F0B

#313F0B is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.4% C 0.076 H 123.7°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#313F0B
RGBrgb(49, 63, 11)
HSLhsl(76, 70%, 15%)
HSVhsv(76, 83%, 25%)
CMYKcmyk(22.2%, 0%, 82.5%, 75.3%)
CIE-LABlab(24.42, -14.41, 28.24)
CIE-LCHlch(24.42, 31.70, 117.04°)
OKLaboklab(34.36% -0.0419 0.063)
OKLCHoklch(34.36% 0.076 123.7)
XYZxyz(3.1046, 4.2321, 0.9699)
Luminance0.0423 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F0B #190B3F
analogous
#3F330B #313F0B #173F0B
triadic
#313F0B #0B313F #3F0B31
tetradic
#313F0B #0B3F33 #190B3F #3F0B17
square
#313F0B #0B3F33 #190B3F #3F0B17
split-complementary
#313F0B #0B173F #330B3F
monochromatic
#141A05 #141A05 #313F0B #5A7314 #82A71D

Accessibility & contrast

On white

11.37
#313F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#313F0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F0B
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F0B#FFFFFF#000000##FFFFFF
##313F0B1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A03
Deuteranopia (green-blind)
#413A10
Tritanopia (blue-blind)
#343B35
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #313f0b;
/* rgb */ color: rgb(49, 63, 11);
/* oklch */ color: oklch(34.4% 0.076 123.7);
Tailwind
colors: {
  custom: {
    50: '#6b744e',
    500: '#313f0b',
    950: '#000000',
  },
}
SCSS
$custom: #313f0b;
$custom-light: #6b744e;
$custom-dark: #000000;
JSON
{
  "hex": "#313f0b",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 11
  },
  "hsl": {
    "h": 76.154,
    "s": 70.27,
    "l": 14.51
  },
  "oklch": {
    "l": 0.34358,
    "c": 0.07566,
    "h": 123.7
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#313F0B
secondary
#402A7C
accent
#3BED6B
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #313F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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