#31370F#31370F

#31370F is a dark, moderate yellow. Relative luminance 0.034; OKLCH L 32.1% C 0.060 H 117.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#31370F
RGBrgb(49, 55, 15)
HSLhsl(69, 57%, 14%)
HSVhsv(69, 73%, 22%)
CMYKcmyk(10.9%, 0%, 72.7%, 78.4%)
CIE-LABlab(21.65, -9.38, 23.48)
CIE-LCHlch(21.65, 25.28, 111.77°)
OKLaboklab(32.14% -0.0275 0.0537)
OKLCHoklch(32.14% 0.06 117.2)
XYZxyz(2.7191, 3.4199, 0.9687)
Luminance0.0342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31370F #150F37
analogous
#37290F #31370F #1D370F
triadic
#31370F #0F3137 #370F31
tetradic
#31370F #0F3729 #150F37 #370F1D
square
#31370F #0F3729 #150F37 #370F1D
split-complementary
#31370F #0F1D37 #290F37
monochromatic
#151807 #151807 #31370F #5C671C #879729

Accessibility & contrast

On white

12.47
#31370F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#31370F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31370F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31370F#FFFFFF#000000##FFFFFF
##31370F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B340A
Deuteranopia (green-blind)
#3B3412
Tritanopia (blue-blind)
#34342F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31370f;
/* rgb */ color: rgb(49, 55, 15);
/* oklch */ color: oklch(32.1% 0.060 117.2);
Tailwind
colors: {
  custom: {
    50: '#6a6d4f',
    500: '#31370f',
    950: '#000000',
  },
}
SCSS
$custom: #31370f;
$custom-light: #6a6d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#31370f",
  "rgb": {
    "r": 49,
    "g": 55,
    "b": 15
  },
  "hsl": {
    "h": 69,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.32136,
    "c": 0.06033,
    "h": 117.2
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#31370F
secondary
#3A3171
accent
#47E05E
background
#F6F6F4
surface
#EBEBE7
border
#C6C6C3
text
#070702
muted
#7A7A78

Preview Lab

Preview with #31370F

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

Preview Lab → · Contrast checker → · Palette generator →

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