#31290F#31290F

#31290F is a dark, muted yellow. Relative luminance 0.023; OKLCH L 28.3% C 0.042 H 92.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#31290F
RGBrgb(49, 41, 15)
HSLhsl(46, 53%, 13%)
HSVhsv(46, 69%, 19%)
CMYKcmyk(0%, 16.3%, 69.4%, 80.8%)
CIE-LABlab(16.86, -0.33, 17.95)
CIE-LCHlch(16.86, 17.95, 91.04°)
OKLaboklab(28.32% -0.0018 0.0423)
OKLCHoklch(28.32% 0.042 92.4)
XYZxyz(2.1459, 2.2734, 0.7776)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31290F #0F1731
analogous
#31180F #31290F #28310F
triadic
#31290F #0F3129 #290F31
tetradic
#31290F #0F3118 #0F1731 #310F28
square
#31290F #0F3118 #0F1731 #310F28
split-complementary
#31290F #0F2831 #180F31
monochromatic
#171407 #171407 #31290F #60501D #8F772C

Accessibility & contrast

On white

14.44
#31290F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#31290F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31290F
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31290F#FFFFFF#000000##FFFFFF
##31290F1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E280C
Deuteranopia (green-blind)
#302B10
Tritanopia (blue-blind)
#352523
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #31290f;
/* rgb */ color: rgb(49, 41, 15);
/* oklch */ color: oklch(28.3% 0.042 92.4);
Tailwind
colors: {
  custom: {
    50: '#6a624e',
    500: '#31290f',
    950: '#000000',
  },
}
SCSS
$custom: #31290f;
$custom-light: #6a624e;
$custom-dark: #000000;
JSON
{
  "hex": "#31290f",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 15
  },
  "hsl": {
    "h": 45.882,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2832,
    "c": 0.04233,
    "h": 92.4
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#31290F
secondary
#313F6B
accent
#6DDD4B
background
#F6F5F4
surface
#EBEAE7
border
#C6C6C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #31290F

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

Preview Lab → · Contrast checker → · Palette generator →

#31290F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva