#31501E#31501E

#31501E is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.085 H 135.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#31501E
RGBrgb(49, 80, 30)
HSLhsl(97, 45%, 22%)
HSVhsv(97, 63%, 31%)
CMYKcmyk(38.8%, 0%, 62.5%, 68.6%)
CIE-LABlab(30.60, -21.75, 25.47)
CIE-LCHlch(30.60, 33.50, 130.50°)
OKLaboklab(39.43% -0.0602 0.0599)
OKLCHoklch(39.43% 0.085 135.2)
XYZxyz(4.3695, 6.4838, 2.2493)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31501E #3D1E50
analogous
#4A501E #31501E #1E5024
triadic
#31501E #1E3150 #501E31
tetradic
#31501E #1E4A50 #3D1E50 #50241E
square
#31501E #1E4A50 #3D1E50 #50241E
split-complementary
#31501E #241E50 #501E4A
monochromatic
#0E1608 #16230D #31501E #4C7D2F #68A93F

Accessibility & contrast

On white

9.14
#31501E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#31501E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31501E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31501E#FFFFFF#000000##FFFFFF
##31501E1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A19
Deuteranopia (green-blind)
#4F4722
Tritanopia (blue-blind)
#304D45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #31501e;
/* rgb */ color: rgb(49, 80, 30);
/* oklch */ color: oklch(39.4% 0.085 135.2);
Tailwind
colors: {
  custom: {
    50: '#6b815c',
    500: '#31501e',
    950: '#000000',
  },
}
SCSS
$custom: #31501e;
$custom-light: #6b815c;
$custom-dark: #000000;
JSON
{
  "hex": "#31501e",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 30
  },
  "hsl": {
    "h": 97.2,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.39433,
    "c": 0.08497,
    "h": 135.2
  },
  "luminance": 0.06484
}

Semantic roles & 50–950 ramp

primary
#31501E
secondary
#6D4585
accent
#53D5A4
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A04
muted
#7A7C79

Preview Lab

Preview with #31501E

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

Preview Lab → · Contrast checker → · Palette generator →

#31501E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva