#31450C#31450C

#31450C is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.1% C 0.084 H 127.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#31450C
RGBrgb(49, 69, 12)
HSLhsl(81, 70%, 16%)
HSVhsv(81, 83%, 27%)
CMYKcmyk(29%, 0%, 82.6%, 72.9%)
CIE-LABlab(26.55, -17.68, 29.89)
CIE-LCHlch(26.55, 34.73, 120.60°)
OKLaboklab(36.08% -0.0508 0.0666)
OKLCHoklch(36.08% 0.084 127.3)
XYZxyz(3.4611, 4.9357, 1.1181)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31450C #200C45
analogous
#453C0C #31450C #14450C
triadic
#31450C #0C3145 #450C31
tetradic
#31450C #0C453C #200C45 #450C14
square
#31450C #0C453C #200C45 #450C14
split-complementary
#31450C #0C1445 #3C0C45
monochromatic
#131A05 #131A05 #31450C #567915 #7BAD1E

Accessibility & contrast

On white

10.57
#31450C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#31450C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31450C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31450C#FFFFFF#000000##FFFFFF
##31450C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494003
Deuteranopia (green-blind)
#463E11
Tritanopia (blue-blind)
#33413A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31450c;
/* rgb */ color: rgb(49, 69, 12);
/* oklch */ color: oklch(36.1% 0.084 127.3);
Tailwind
colors: {
  custom: {
    50: '#6b784f',
    500: '#31450c',
    950: '#000000',
  },
}
SCSS
$custom: #31450c;
$custom-light: #6b784f;
$custom-dark: #000000;
JSON
{
  "hex": "#31450c",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 12
  },
  "hsl": {
    "h": 81.053,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.36083,
    "c": 0.08378,
    "h": 127.3
  },
  "luminance": 0.04936
}

Semantic roles & 50–950 ramp

primary
#31450C
secondary
#4A2C81
accent
#3BED79
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31450C

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

Preview Lab → · Contrast checker → · Palette generator →

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