#31330F#31330F

#31330F is a dark, muted yellow. Relative luminance 0.031; OKLCH L 31.0% C 0.054 H 112.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#31330F
RGBrgb(49, 51, 15)
HSLhsl(63, 55%, 13%)
HSVhsv(63, 71%, 20%)
CMYKcmyk(3.9%, 0%, 70.6%, 80%)
CIE-LABlab(20.26, -6.89, 21.95)
CIE-LCHlch(20.26, 23.01, 107.42°)
OKLaboklab(31.02% -0.0205 0.0505)
OKLCHoklch(31.02% 0.055 112.1)
XYZxyz(2.5367, 3.0552, 0.9079)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31330F #110F33
analogous
#33230F #31330F #1F330F
triadic
#31330F #0F3133 #330F31
tetradic
#31330F #0F3323 #110F33 #330F1F
square
#31330F #0F3323 #110F33 #330F1F
split-complementary
#31330F #0F1F33 #230F33
monochromatic
#171807 #171807 #31330F #5E621D #8C922B

Accessibility & contrast

On white

13.04
#31330F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#31330F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31330F
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31330F#FFFFFF#000000##FFFFFF
##31330F1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37300B
Deuteranopia (green-blind)
#373111
Tritanopia (blue-blind)
#35302B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31330f;
/* rgb */ color: rgb(49, 51, 15);
/* oklch */ color: oklch(31.0% 0.054 112.1);
Tailwind
colors: {
  custom: {
    50: '#6a6a4f',
    500: '#31330f',
    950: '#000000',
  },
}
SCSS
$custom: #31330f;
$custom-light: #6a6a4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31330f",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 15
  },
  "hsl": {
    "h": 63.333,
    "s": 54.545,
    "l": 12.941
  },
  "oklch": {
    "l": 0.31024,
    "c": 0.0545,
    "h": 112.1
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#31330F
secondary
#34316D
accent
#4ADE52
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#060602
muted
#7A7A78

Preview Lab

Preview with #31330F

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

Preview Lab → · Contrast checker → · Palette generator →

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