#31420B#31420B

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

Color values

HEX#31420B
RGBrgb(49, 66, 11)
HSLhsl(79, 71%, 15%)
HSVhsv(79, 83%, 26%)
CMYKcmyk(25.8%, 0%, 83.3%, 74.1%)
CIE-LABlab(25.48, -16.10, 29.27)
CIE-LCHlch(25.48, 33.40, 118.81°)
OKLaboklab(35.22% -0.0466 0.0651)
OKLCHoklch(35.22% 0.08 125.6)
XYZxyz(3.2753, 4.5735, 1.0268)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31420B #1C0B42
analogous
#42370B #31420B #16420B
triadic
#31420B #0B3142 #420B31
tetradic
#31420B #0B4237 #1C0B42 #420B16
square
#31420B #0B4237 #1C0B42 #420B16
split-complementary
#31420B #0B1642 #370B42
monochromatic
#131A04 #131A04 #31420B #587614 #7FAB1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##31420B#FFFFFF#000000##FFFFFF
##31420B1.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)
#463D03
Deuteranopia (green-blind)
#443C10
Tritanopia (blue-blind)
#343E37
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31420b;
/* rgb */ color: rgb(49, 66, 11);
/* oklch */ color: oklch(35.2% 0.080 125.6);
Tailwind
colors: {
  custom: {
    50: '#6b764f',
    500: '#31420b',
    950: '#000000',
  },
}
SCSS
$custom: #31420b;
$custom-light: #6b764f;
$custom-dark: #000000;
JSON
{
  "hex": "#31420b",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 11
  },
  "hsl": {
    "h": 78.545,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.35215,
    "c": 0.08007,
    "h": 125.6
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#31420B
secondary
#442A7F
accent
#3AEE71
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #31420B

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

Preview Lab → · Contrast checker → · Palette generator →

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