#31270F#31270F

#31270F is a dark, muted orange. Relative luminance 0.021; OKLCH L 27.8% C 0.041 H 87.0°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#31270F
RGBrgb(49, 39, 15)
HSLhsl(42, 53%, 13%)
HSVhsv(42, 69%, 19%)
CMYKcmyk(0%, 20.4%, 69.4%, 80.8%)
CIE-LABlab(16.20, 1.04, 17.13)
CIE-LCHlch(16.20, 17.16, 86.54°)
OKLaboklab(27.8% 0.0022 0.0406)
OKLCHoklch(27.8% 0.041 87)
XYZxyz(2.0785, 2.1386, 0.7552)
Luminance0.0214 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31270F #0F1931
analogous
#31160F #31270F #2A310F
triadic
#31270F #0F3127 #270F31
tetradic
#31270F #0F3116 #0F1931 #310F2A
square
#31270F #0F3116 #0F1931 #310F2A
split-complementary
#31270F #0F2A31 #160F31
monochromatic
#171307 #171307 #31270F #604C1D #8F722C

Accessibility & contrast

On white

14.71
#31270F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#31270F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31270F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31270F#FFFFFF#000000##FFFFFF
##31270F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270D
Deuteranopia (green-blind)
#2E2910
Tritanopia (blue-blind)
#352322
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #31270f;
/* rgb */ color: rgb(49, 39, 15);
/* oklch */ color: oklch(27.8% 0.041 87.0);
Tailwind
colors: {
  custom: {
    50: '#6a604e',
    500: '#31270f',
    950: '#000000',
  },
}
SCSS
$custom: #31270f;
$custom-light: #6a604e;
$custom-dark: #000000;
JSON
{
  "hex": "#31270f",
  "rgb": {
    "r": 49,
    "g": 39,
    "b": 15
  },
  "hsl": {
    "h": 42.353,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.27798,
    "c": 0.04069,
    "h": 87
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#31270F
secondary
#31426B
accent
#76DD4B
background
#F6F5F4
surface
#EBE9E7
border
#C6C5C3
text
#070501
muted
#7A7977

Preview Lab

Preview with #31270F

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

Preview Lab → · Contrast checker → · Palette generator →

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