#31530C#31530C

#31530C is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.1% C 0.104 H 132.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#31530C
RGBrgb(49, 83, 12)
HSLhsl(89, 75%, 19%)
HSVhsv(89, 86%, 33%)
CMYKcmyk(41%, 0%, 85.5%, 67.5%)
CIE-LABlab(31.50, -24.85, 34.60)
CIE-LCHlch(31.50, 42.60, 125.69°)
OKLaboklab(40.12% -0.0702 0.0765)
OKLCHoklch(40.12% 0.104 132.5)
XYZxyz(4.4262, 6.8658, 1.4398)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31530C #2E0C53
analogous
#53510C #31530C #0E530C
triadic
#31530C #0C3153 #530C31
tetradic
#31530C #0C5351 #2E0C53 #530C0E
square
#31530C #0C5351 #2E0C53 #530C0E
split-complementary
#31530C #0C0E53 #510C53
monochromatic
#101B04 #111E04 #31530C #518814 #70BE1B

Accessibility & contrast

On white

8.85
#31530C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#31530C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31530C
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31530C#FFFFFF#000000##FFFFFF
##31530C1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#524914
Tritanopia (blue-blind)
#314F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #31530c;
/* rgb */ color: rgb(49, 83, 12);
/* oklch */ color: oklch(40.1% 0.104 132.5);
Tailwind
colors: {
  custom: {
    50: '#6d8352',
    500: '#31530c',
    950: '#000000',
  },
}
SCSS
$custom: #31530c;
$custom-light: #6d8352;
$custom-dark: #000000;
JSON
{
  "hex": "#31530c",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 12
  },
  "hsl": {
    "h": 88.732,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.10386,
    "h": 132.5
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#31530C
secondary
#5B2D8E
accent
#36F190
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #31530C

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

Preview Lab → · Contrast checker → · Palette generator →

#31530C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva