#402D0B#402D0B

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

Color values

HEX#402D0B
RGBrgb(64, 45, 11)
HSLhsl(38, 71%, 15%)
HSVhsv(38, 83%, 25%)
CMYKcmyk(0%, 29.7%, 82.8%, 74.9%)
CIE-LABlab(20.01, 4.77, 24.06)
CIE-LCHlch(20.01, 24.53, 78.79°)
OKLaboklab(31.22% 0.0112 0.0542)
OKLCHoklch(31.22% 0.055 78.4)
XYZxyz(3.1133, 2.9912, 0.7299)
Luminance0.0299 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D0B #0B1E40
analogous
#40130B #402D0B #39400B
triadic
#402D0B #0B402D #2D0B40
tetradic
#402D0B #0B4013 #0B1E40 #400B39
square
#402D0B #0B4013 #0B1E40 #400B39
split-complementary
#402D0B #0B3940 #130B40
monochromatic
#1A1204 #1A1204 #402D0B #745214 #A8761D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##402D0B#FFFFFF#000000##FFFFFF
##402D0B1.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)
#342E07
Deuteranopia (green-blind)
#39320C
Tritanopia (blue-blind)
#462826
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d0b;
/* rgb */ color: rgb(64, 45, 11);
/* oklch */ color: oklch(31.2% 0.055 78.4);
Tailwind
colors: {
  custom: {
    50: '#78654c',
    500: '#402d0b',
    950: '#000000',
  },
}
SCSS
$custom: #402d0b;
$custom-light: #78654c;
$custom-dark: #000000;
JSON
{
  "hex": "#402d0b",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 11
  },
  "hsl": {
    "h": 38.491,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.31217,
    "c": 0.05534,
    "h": 78.4
  },
  "luminance": 0.02991
}

Semantic roles & 50–950 ramp

primary
#402D0B
secondary
#2A487D
accent
#7BED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D0B

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

Preview Lab → · Contrast checker → · Palette generator →

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