#31541B#31541B

#31541B is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.5% C 0.094 H 135.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#31541B
RGBrgb(49, 84, 27)
HSLhsl(97, 51%, 22%)
HSVhsv(97, 68%, 33%)
CMYKcmyk(41.7%, 0%, 67.9%, 67.1%)
CIE-LABlab(31.97, -24.10, 28.59)
CIE-LCHlch(31.97, 37.39, 130.14°)
OKLaboklab(40.54% -0.0669 0.0662)
OKLCHoklch(40.54% 0.094 135.3)
XYZxyz(4.6347, 7.0725, 2.1576)
Luminance0.0707 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31541B #3E1B54
analogous
#4E541B #31541B #1B5422
triadic
#31541B #1B3154 #541B31
tetradic
#31541B #1B4E54 #3E1B54 #54221B
square
#31541B #1B4E54 #3E1B54 #54221B
split-complementary
#31541B #221B54 #541B4E
monochromatic
#0E1707 #16260C #31541B #4C822A #67B139

Accessibility & contrast

On white

8.70
#31541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#31541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31541B
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31541B#FFFFFF#000000##FFFFFF
##31541B1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574D14
Deuteranopia (green-blind)
#524A1F
Tritanopia (blue-blind)
#305148
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31541b;
/* rgb */ color: rgb(49, 84, 27);
/* oklch */ color: oklch(40.5% 0.094 135.3);
Tailwind
colors: {
  custom: {
    50: '#6c845a',
    500: '#31541b',
    950: '#000000',
  },
}
SCSS
$custom: #31541b;
$custom-light: #6c845a;
$custom-dark: #000000;
JSON
{
  "hex": "#31541b",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 96.842,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4054,
    "c": 0.09417,
    "h": 135.3
  },
  "luminance": 0.07073
}

Semantic roles & 50–950 ramp

primary
#31541B
secondary
#6E418A
accent
#4DDBA4
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B04
muted
#7A7C79

Preview Lab

Preview with #31541B

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

Preview Lab → · Contrast checker → · Palette generator →

#31541B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva