#31450F#31450F

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

Color values

HEX#31450F
RGBrgb(49, 69, 15)
HSLhsl(82, 64%, 16%)
HSVhsv(82, 78%, 27%)
CMYKcmyk(29%, 0%, 78.3%, 72.9%)
CIE-LABlab(26.57, -17.46, 28.62)
CIE-LCHlch(26.57, 33.52, 121.39°)
OKLaboklab(36.11% -0.0499 0.0645)
OKLCHoklch(36.11% 0.082 127.7)
XYZxyz(3.4810, 4.9436, 1.2227)
Luminance0.0494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31450F #230F45
analogous
#453E0F #31450F #16450F
triadic
#31450F #0F3145 #450F31
tetradic
#31450F #0F453E #230F45 #450F16
square
#31450F #0F453E #230F45 #450F16
split-complementary
#31450F #0F1645 #3E0F45
monochromatic
#121905 #121905 #31450F #55771A #78AA25

Accessibility & contrast

On white

10.56
#31450F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31450F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31450F#FFFFFF#000000##FFFFFF
##31450F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494007
Deuteranopia (green-blind)
#463E14
Tritanopia (blue-blind)
#33423A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #31450f;
/* rgb */ color: rgb(49, 69, 15);
/* oklch */ color: oklch(36.1% 0.082 127.7);
Tailwind
colors: {
  custom: {
    50: '#6b7851',
    500: '#31450f',
    950: '#000000',
  },
}
SCSS
$custom: #31450f;
$custom-light: #6b7851;
$custom-dark: #000000;
JSON
{
  "hex": "#31450f",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 15
  },
  "hsl": {
    "h": 82.222,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.36109,
    "c": 0.08155,
    "h": 127.7
  },
  "luminance": 0.04944
}

Semantic roles & 50–950 ramp

primary
#31450F
secondary
#4E307F
accent
#41E77E
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #31450F

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

Preview Lab → · Contrast checker → · Palette generator →

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