#31450B#31450B

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

Color values

HEX#31450B
RGBrgb(49, 69, 11)
HSLhsl(81, 73%, 16%)
HSVhsv(81, 84%, 27%)
CMYKcmyk(29%, 0%, 84.1%, 72.9%)
CIE-LABlab(26.54, -17.75, 30.29)
CIE-LCHlch(26.54, 35.11, 120.36°)
OKLaboklab(36.08% -0.0511 0.0673)
OKLCHoklch(36.08% 0.084 127.2)
XYZxyz(3.4552, 4.9333, 1.0867)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31450B #1F0B45
analogous
#453C0B #31450B #14450B
triadic
#31450B #0B3145 #450B31
tetradic
#31450B #0B453C #1F0B45 #450B14
square
#31450B #0B453C #1F0B45 #450B14
split-complementary
#31450B #0B1445 #3C0B45
monochromatic
#131A04 #131A04 #31450B #567A13 #7CAF1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31450B#FFFFFF#000000##FFFFFF
##31450B1.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)
#494002
Deuteranopia (green-blind)
#463E11
Tritanopia (blue-blind)
#33413A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31450b;
/* rgb */ color: rgb(49, 69, 11);
/* oklch */ color: oklch(36.1% 0.084 127.2);
Tailwind
colors: {
  custom: {
    50: '#6c784f',
    500: '#31450b',
    950: '#000000',
  },
}
SCSS
$custom: #31450b;
$custom-light: #6c784f;
$custom-dark: #000000;
JSON
{
  "hex": "#31450b",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 11
  },
  "hsl": {
    "h": 80.69,
    "s": 72.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.08446,
    "h": 127.2
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#31450B
secondary
#482A81
accent
#39EF78
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31450B

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

Preview Lab → · Contrast checker → · Palette generator →

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