#40310F#40310F

#40310F is a dark, muted orange. Relative luminance 0.033; OKLCH L 32.2% C 0.054 H 84.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#40310F
RGBrgb(64, 49, 15)
HSLhsl(42, 62%, 15%)
HSVhsv(42, 77%, 25%)
CMYKcmyk(0%, 23.4%, 76.6%, 74.9%)
CIE-LABlab(21.29, 2.38, 23.55)
CIE-LCHlch(21.29, 23.67, 84.23°)
OKLaboklab(32.23% 0.0048 0.0534)
OKLCHoklch(32.23% 0.054 84.8)
XYZxyz(3.2991, 3.3213, 0.9192)
Luminance0.0332 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40310F #0F1E40
analogous
#40190F #40310F #36400F
triadic
#40310F #0F4031 #310F40
tetradic
#40310F #0F4019 #0F1E40 #400F36
square
#40310F #0F4019 #0F1E40 #400F36
split-complementary
#40310F #0F3640 #190F40
monochromatic
#191306 #191306 #40310F #72571B #A37D26

Accessibility & contrast

On white

12.62
#40310F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#40310F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40310F
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40310F#FFFFFF#000000##FFFFFF
##40310F1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38310B
Deuteranopia (green-blind)
#3B3510
Tritanopia (blue-blind)
#462C2A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #40310f;
/* rgb */ color: rgb(64, 49, 15);
/* oklch */ color: oklch(32.2% 0.054 84.8);
Tailwind
colors: {
  custom: {
    50: '#77684f',
    500: '#40310f',
    950: '#000000',
  },
}
SCSS
$custom: #40310f;
$custom-light: #77684f;
$custom-dark: #000000;
JSON
{
  "hex": "#40310f",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 15
  },
  "hsl": {
    "h": 41.633,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.32233,
    "c": 0.05359,
    "h": 84.8
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#40310F
secondary
#30477A
accent
#74E543
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #40310F

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

Preview Lab → · Contrast checker → · Palette generator →

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