#31420D#31420D

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

Color values

HEX#31420D
RGBrgb(49, 66, 13)
HSLhsl(79, 67%, 15%)
HSVhsv(79, 80%, 26%)
CMYKcmyk(25.8%, 0%, 80.3%, 74.1%)
CIE-LABlab(25.50, -15.96, 28.43)
CIE-LCHlch(25.50, 32.60, 119.31°)
OKLaboklab(35.23% -0.046 0.0637)
OKLCHoklch(35.23% 0.079 125.8)
XYZxyz(3.2875, 4.5784, 1.0912)
Luminance0.0458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420D #1E0D42
analogous
#42380D #31420D #16420D
triadic
#31420D #0D3142 #420D31
tetradic
#31420D #0D4238 #1E0D42 #420D16
square
#31420D #0D4238 #1E0D42 #420D16
split-complementary
#31420D #0D1642 #380D42
monochromatic
#131A05 #131A05 #31420D #577517 #7DA821

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31420D#FFFFFF#000000##FFFFFF
##31420D1.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)
#463D05
Deuteranopia (green-blind)
#443C12
Tritanopia (blue-blind)
#333E38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420d;
/* rgb */ color: rgb(49, 66, 13);
/* oklch */ color: oklch(35.2% 0.079 125.8);
Tailwind
colors: {
  custom: {
    50: '#6b7650',
    500: '#31420d',
    950: '#000000',
  },
}
SCSS
$custom: #31420d;
$custom-light: #6b7650;
$custom-dark: #000000;
JSON
{
  "hex": "#31420d",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 13
  },
  "hsl": {
    "h": 79.245,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.35232,
    "c": 0.07861,
    "h": 125.8
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#31420D
secondary
#472D7E
accent
#3EEA75
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420D

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

Preview Lab → · Contrast checker → · Palette generator →

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