#313E17#313E17

#313E17 is a dark, moderate yellow-green. Relative luminance 0.042; OKLCH L 34.2% C 0.063 H 125.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#313E17
RGBrgb(49, 62, 23)
HSLhsl(80, 46%, 17%)
HSVhsv(80, 63%, 24%)
CMYKcmyk(21%, 0%, 62.9%, 75.7%)
CIE-LABlab(24.19, -12.75, 21.92)
CIE-LCHlch(24.19, 25.36, 120.18°)
OKLaboklab(34.21% -0.036 0.0515)
OKLCHoklch(34.21% 0.063 125)
XYZxyz(3.1439, 4.1601, 1.4478)
Luminance0.0416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E17 #24173E
analogous
#3E3817 #313E17 #1E3E17
triadic
#313E17 #17313E #3E1731
tetradic
#313E17 #173E38 #24173E #3E171E
square
#313E17 #173E38 #24173E #3E171E
split-complementary
#313E17 #171E3E #38173E
monochromatic
#121608 #121608 #313E17 #546B28 #789738

Accessibility & contrast

On white

11.46
#313E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#313E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E17
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E17#FFFFFF#000000##FFFFFF
##313E171.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A13
Deuteranopia (green-blind)
#403919
Tritanopia (blue-blind)
#333B35
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #313e17;
/* rgb */ color: rgb(49, 62, 23);
/* oklch */ color: oklch(34.2% 0.063 125.0);
Tailwind
colors: {
  custom: {
    50: '#6a7355',
    500: '#313e17',
    950: '#000000',
  },
}
SCSS
$custom: #313e17;
$custom-light: #6a7355;
$custom-dark: #000000;
JSON
{
  "hex": "#313e17",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 23
  },
  "hsl": {
    "h": 80,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.3421,
    "c": 0.06282,
    "h": 125
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#313E17
secondary
#4F3C75
accent
#52D67E
background
#F6F6F5
surface
#EBECE9
border
#C6C7C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #313E17

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

Preview Lab → · Contrast checker → · Palette generator →

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