#31380A#31380A

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

Color values

HEX#31380A
RGBrgb(49, 56, 10)
HSLhsl(69, 70%, 13%)
HSVhsv(69, 82%, 22%)
CMYKcmyk(12.5%, 0%, 82.1%, 78%)
CIE-LABlab(21.96, -10.38, 26.14)
CIE-LCHlch(21.96, 28.12, 111.65°)
OKLaboklab(32.37% -0.0309 0.0586)
OKLCHoklch(32.37% 0.066 117.8)
XYZxyz(2.7356, 3.5033, 0.8192)
Luminance0.0350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31380A #110A38
analogous
#38280A #31380A #1A380A
triadic
#31380A #0A3138 #380A31
tetradic
#31380A #0A3828 #110A38 #380A1A
square
#31380A #0A3828 #110A38 #380A1A
split-complementary
#31380A #0A1A38 #280A38
monochromatic
#171A05 #171A05 #31380A #5E6C13 #8CA01D

Accessibility & contrast

On white

12.35
#31380A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31380A
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31380A#FFFFFF#000000##FFFFFF
##31380A1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3404
Deuteranopia (green-blind)
#3C350E
Tritanopia (blue-blind)
#35342F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #31380a;
/* rgb */ color: rgb(49, 56, 10);
/* oklch */ color: oklch(32.4% 0.066 117.8);
Tailwind
colors: {
  custom: {
    50: '#6b6e4d',
    500: '#31380a',
    950: '#000000',
  },
}
SCSS
$custom: #31380a;
$custom-light: #6b6e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#31380a",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 10
  },
  "hsl": {
    "h": 69.13,
    "s": 69.697,
    "l": 12.941
  },
  "oklch": {
    "l": 0.32365,
    "c": 0.06626,
    "h": 117.8
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#31380A
secondary
#342875
accent
#3BED56
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070701
muted
#7A7A77

Preview Lab

Preview with #31380A

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

Preview Lab → · Contrast checker → · Palette generator →

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