#31380D#31380D

#31380D is a dark, moderate yellow. Relative luminance 0.035; OKLCH L 32.4% C 0.064 H 118.0°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#31380D
RGBrgb(49, 56, 13)
HSLhsl(70, 62%, 14%)
HSVhsv(70, 77%, 22%)
CMYKcmyk(12.5%, 0%, 76.8%, 78%)
CIE-LABlab(21.98, -10.15, 24.84)
CIE-LCHlch(21.98, 26.83, 112.23°)
OKLaboklab(32.39% -0.0299 0.0562)
OKLCHoklch(32.39% 0.064 118)
XYZxyz(2.7535, 3.5104, 0.9132)
Luminance0.0351 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31380D #140D38
analogous
#38290D #31380D #1B380D
triadic
#31380D #0D3138 #380D31
tetradic
#31380D #0D3829 #140D38 #380D1B
square
#31380D #0D3829 #140D38 #380D1B
split-complementary
#31380D #0D1B38 #290D38
monochromatic
#161906 #161906 #31380D #5C6A19 #889B24

Accessibility & contrast

On white

12.34
#31380D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31380D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31380D#FFFFFF#000000##FFFFFF
##31380D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31380d;
/* rgb */ color: rgb(49, 56, 13);
/* oklch */ color: oklch(32.4% 0.064 118.0);
Tailwind
colors: {
  custom: {
    50: '#6b6e4e',
    500: '#31380d',
    950: '#000000',
  },
}
SCSS
$custom: #31380d;
$custom-light: #6b6e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#31380d",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 13
  },
  "hsl": {
    "h": 69.767,
    "s": 62.319,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32394,
    "c": 0.06371,
    "h": 118
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#31380D
secondary
#392D73
accent
#42E55D
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31380D

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

Preview Lab → · Contrast checker → · Palette generator →

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