#402F0D#402F0D

#402F0D is a dark, muted orange. Relative luminance 0.032; OKLCH L 31.7% C 0.054 H 81.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#402F0D
RGBrgb(64, 47, 13)
HSLhsl(40, 66%, 15%)
HSVhsv(40, 80%, 25%)
CMYKcmyk(0%, 26.6%, 79.7%, 74.9%)
CIE-LABlab(20.64, 3.57, 23.86)
CIE-LCHlch(20.64, 24.12, 81.50°)
OKLaboklab(31.72% 0.008 0.0538)
OKLCHoklch(31.72% 0.054 81.6)
XYZxyz(3.2037, 3.1523, 0.8204)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F0D #0D1E40
analogous
#40150D #402F0D #37400D
triadic
#402F0D #0D402F #2F0D40
tetradic
#402F0D #0D4015 #0D1E40 #400D37
square
#402F0D #0D4015 #0D1E40 #400D37
split-complementary
#402F0D #0D3740 #150D40
monochromatic
#191305 #191305 #402F0D #735417 #A67A22

Accessibility & contrast

On white

12.88
#402F0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402F0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F0D
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F0D#FFFFFF#000000##FFFFFF
##402F0D1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362F09
Deuteranopia (green-blind)
#3A330E
Tritanopia (blue-blind)
#462A28
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f0d;
/* rgb */ color: rgb(64, 47, 13);
/* oklch */ color: oklch(31.7% 0.054 81.6);
Tailwind
colors: {
  custom: {
    50: '#77674e',
    500: '#402f0d',
    950: '#000000',
  },
}
SCSS
$custom: #402f0d;
$custom-light: #77674e;
$custom-dark: #000000;
JSON
{
  "hex": "#402f0d",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 13
  },
  "hsl": {
    "h": 40,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.31721,
    "c": 0.0544,
    "h": 81.6
  },
  "luminance": 0.03152
}

Semantic roles & 50–950 ramp

primary
#402F0D
secondary
#2D477C
accent
#77E93F
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #402F0D

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

Preview Lab → · Contrast checker → · Palette generator →

#402F0D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva