#31420A#31420A

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

Color values

HEX#31420A
RGBrgb(49, 66, 10)
HSLhsl(78, 74%, 15%)
HSVhsv(78, 85%, 26%)
CMYKcmyk(25.8%, 0%, 84.8%, 74.1%)
CIE-LABlab(25.48, -16.17, 29.67)
CIE-LCHlch(25.48, 33.79, 118.59°)
OKLaboklab(35.21% -0.0468 0.0658)
OKLCHoklch(35.21% 0.081 125.5)
XYZxyz(3.2696, 4.5713, 0.9972)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420A #1B0A42
analogous
#42370A #31420A #15420A
triadic
#31420A #0A3142 #420A31
tetradic
#31420A #0A4237 #1B0A42 #420A15
square
#31420A #0A4237 #1B0A42 #420A15
split-complementary
#31420A #0A1542 #370A42
monochromatic
#141B04 #141B04 #31420A #587712 #80AC1A

Accessibility & contrast

On white

10.97
#31420A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31420A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31420A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31420A#FFFFFF#000000##FFFFFF
##31420A1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D01
Deuteranopia (green-blind)
#443C0F
Tritanopia (blue-blind)
#343E37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420a;
/* rgb */ color: rgb(49, 66, 10);
/* oklch */ color: oklch(35.2% 0.081 125.5);
Tailwind
colors: {
  custom: {
    50: '#6b764e',
    500: '#31420a',
    950: '#000000',
  },
}
SCSS
$custom: #31420a;
$custom-light: #6b764e;
$custom-dark: #000000;
JSON
{
  "hex": "#31420a",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 10
  },
  "hsl": {
    "h": 78.214,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.35207,
    "c": 0.08075,
    "h": 125.5
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#31420A
secondary
#43297F
accent
#37F070
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420A

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

Preview Lab → · Contrast checker → · Palette generator →

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