#31380E#31380E

#31380E is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.4% C 0.063 H 118.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#31380E
RGBrgb(49, 56, 14)
HSLhsl(70, 60%, 14%)
HSVhsv(70, 75%, 22%)
CMYKcmyk(12.5%, 0%, 75%, 78%)
CIE-LABlab(21.99, -10.07, 24.35)
CIE-LCHlch(21.99, 26.35, 112.46°)
OKLaboklab(32.41% -0.0296 0.0554)
OKLCHoklch(32.41% 0.063 118.1)
XYZxyz(2.7601, 3.5130, 0.9481)
Luminance0.0351 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31380E #150E38
analogous
#382A0E #31380E #1C380E
triadic
#31380E #0E3138 #380E31
tetradic
#31380E #0E382A #150E38 #380E1C
square
#31380E #0E382A #150E38 #380E1C
split-complementary
#31380E #0E1C38 #2A0E38
monochromatic
#151806 #151806 #31380E #5C691A #879A26

Accessibility & contrast

On white

12.33
#31380E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#31380E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31380E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31380E#FFFFFF#000000##FFFFFF
##31380E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3509
Deuteranopia (green-blind)
#3B3511
Tritanopia (blue-blind)
#34352F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31380e;
/* rgb */ color: rgb(49, 56, 14);
/* oklch */ color: oklch(32.4% 0.063 118.1);
Tailwind
colors: {
  custom: {
    50: '#6b6e4f',
    500: '#31380e',
    950: '#000000',
  },
}
SCSS
$custom: #31380e;
$custom-light: #6b6e4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31380e",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 14
  },
  "hsl": {
    "h": 70,
    "s": 60,
    "l": 13.725
  },
  "oklch": {
    "l": 0.32405,
    "c": 0.06279,
    "h": 118.1
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#31380E
secondary
#3A2F73
accent
#45E35F
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31380E

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

Preview Lab → · Contrast checker → · Palette generator →

#31380E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva