#31420F#31420F

#31420F is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.3% C 0.077 H 126.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#31420F
RGBrgb(49, 66, 15)
HSLhsl(80, 63%, 16%)
HSVhsv(80, 77%, 26%)
CMYKcmyk(25.8%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.51, -15.81, 27.53)
CIE-LCHlch(25.51, 31.75, 119.86°)
OKLaboklab(35.25% -0.0454 0.0622)
OKLCHoklch(35.25% 0.077 126.1)
XYZxyz(3.3011, 4.5838, 1.1627)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420F #200F42
analogous
#42390F #31420F #17420F
triadic
#31420F #0F3142 #420F31
tetradic
#31420F #0F4239 #200F42 #420F17
square
#31420F #0F4239 #200F42 #420F17
split-complementary
#31420F #0F1742 #390F42
monochromatic
#131906 #131906 #31420F #56741A #7BA626

Accessibility & contrast

On white

10.96
#31420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#31420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31420F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31420F#FFFFFF#000000##FFFFFF
##31420F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D08
Deuteranopia (green-blind)
#443C13
Tritanopia (blue-blind)
#333F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420f;
/* rgb */ color: rgb(49, 66, 15);
/* oklch */ color: oklch(35.3% 0.077 126.1);
Tailwind
colors: {
  custom: {
    50: '#6b7651',
    500: '#31420f',
    950: '#000000',
  },
}
SCSS
$custom: #31420f;
$custom-light: #6b7651;
$custom-dark: #000000;
JSON
{
  "hex": "#31420f",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 80,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.3525,
    "c": 0.07701,
    "h": 126.1
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#31420F
secondary
#4A307C
accent
#42E679
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420F

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

Preview Lab → · Contrast checker → · Palette generator →

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