#402D0C#402D0C

#402D0C is a dark, muted orange. Relative luminance 0.030; OKLCH L 31.2% C 0.055 H 77.9°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#402D0C
RGBrgb(64, 45, 12)
HSLhsl(38, 68%, 15%)
HSVhsv(38, 81%, 25%)
CMYKcmyk(0%, 29.7%, 81.2%, 74.9%)
CIE-LABlab(20.02, 4.83, 23.62)
CIE-LCHlch(20.02, 24.11, 78.44°)
OKLaboklab(31.23% 0.0115 0.0533)
OKLCHoklch(31.23% 0.055 77.9)
XYZxyz(3.1193, 2.9935, 0.7613)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D0C #0C1F40
analogous
#40130C #402D0C #39400C
triadic
#402D0C #0C402D #2D0C40
tetradic
#402D0C #0C4013 #0C1F40 #400C39
square
#402D0C #0C4013 #0C1F40 #400C39
split-complementary
#402D0C #0C3940 #130C40
monochromatic
#1A1205 #1A1205 #402D0C #745116 #A7751F

Accessibility & contrast

On white

13.14
#402D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402D0C
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D0C#FFFFFF#000000##FFFFFF
##402D0C1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342E08
Deuteranopia (green-blind)
#39320D
Tritanopia (blue-blind)
#462826
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d0c;
/* rgb */ color: rgb(64, 45, 12);
/* oklch */ color: oklch(31.2% 0.055 77.9);
Tailwind
colors: {
  custom: {
    50: '#77654d',
    500: '#402d0c',
    950: '#000000',
  },
}
SCSS
$custom: #402d0c;
$custom-light: #77654d;
$custom-dark: #000000;
JSON
{
  "hex": "#402d0c",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 12
  },
  "hsl": {
    "h": 38.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.31228,
    "c": 0.05456,
    "h": 77.9
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#402D0C
secondary
#2C497C
accent
#7CEB3D
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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