#31530F#31530F

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

Color values

HEX#31530F
RGBrgb(49, 83, 15)
HSLhsl(90, 69%, 19%)
HSVhsv(90, 82%, 33%)
CMYKcmyk(41%, 0%, 81.9%, 67.5%)
CIE-LABlab(31.52, -24.66, 33.51)
CIE-LCHlch(31.52, 41.61, 126.35°)
OKLaboklab(40.14% -0.0695 0.0748)
OKLCHoklch(40.14% 0.102 132.9)
XYZxyz(4.4460, 6.8738, 1.5444)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31530F #310F53
analogous
#53530F #31530F #0F530F
triadic
#31530F #0F3153 #530F31
tetradic
#31530F #0F5353 #310F53 #530F0F
square
#31530F #0F5353 #310F53 #530F0F
split-complementary
#31530F #0F0F53 #530F53
monochromatic
#0F1A05 #121F06 #31530F #508718 #6EBB22

Accessibility & contrast

On white

8.84
#31530F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31530F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31530F#FFFFFF#000000##FFFFFF
##31530F1.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31530f;
/* rgb */ color: rgb(49, 83, 15);
/* oklch */ color: oklch(40.1% 0.102 132.9);
Tailwind
colors: {
  custom: {
    50: '#6d8353',
    500: '#31530f',
    950: '#000000',
  },
}
SCSS
$custom: #31530f;
$custom-light: #6d8353;
$custom-dark: #000000;
JSON
{
  "hex": "#31530f",
  "rgb": {
    "r": 49,
    "g": 83,
    "b": 15
  },
  "hsl": {
    "h": 90,
    "s": 69.388,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40136,
    "c": 0.10206,
    "h": 132.9
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#31530F
secondary
#5F318D
accent
#3CEC94
background
#F6F8F4
surface
#ECEFE7
border
#C7CAC3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #31530F

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

Preview Lab → · Contrast checker → · Palette generator →

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