#402D0F#402D0F

#402D0F is a dark, muted orange. Relative luminance 0.030; OKLCH L 31.3% C 0.052 H 76.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#402D0F
RGBrgb(64, 45, 15)
HSLhsl(37, 62%, 15%)
HSVhsv(37, 77%, 25%)
CMYKcmyk(0%, 29.7%, 76.6%, 74.9%)
CIE-LABlab(20.05, 5.03, 22.18)
CIE-LCHlch(20.05, 22.75, 77.21°)
OKLaboklab(31.26% 0.0126 0.0505)
OKLCHoklch(31.26% 0.052 76)
XYZxyz(3.1392, 3.0015, 0.8659)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D0F #0F2240
analogous
#40150F #402D0F #3A400F
triadic
#402D0F #0F402D #2D0F40
tetradic
#402D0F #0F4015 #0F2240 #400F3A
square
#402D0F #0F4015 #0F2240 #400F3A
split-complementary
#402D0F #0F3A40 #150F40
monochromatic
#191106 #191106 #402D0F #72501B #A37326

Accessibility & contrast

On white

13.12
#402D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#402D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D0F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D0F#FFFFFF#000000##FFFFFF
##402D0F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E0C
Deuteranopia (green-blind)
#393210
Tritanopia (blue-blind)
#462827
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d0f;
/* rgb */ color: rgb(64, 45, 15);
/* oklch */ color: oklch(31.3% 0.052 76.0);
Tailwind
colors: {
  custom: {
    50: '#77654f',
    500: '#402d0f',
    950: '#000000',
  },
}
SCSS
$custom: #402d0f;
$custom-light: #77654f;
$custom-dark: #000000;
JSON
{
  "hex": "#402d0f",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 15
  },
  "hsl": {
    "h": 36.735,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.31263,
    "c": 0.05208,
    "h": 76
  },
  "luminance": 0.03001
}

Semantic roles & 50–950 ramp

primary
#402D0F
secondary
#304D7A
accent
#82E543
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090502
muted
#7B7A78

Preview Lab

Preview with #402D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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