#402D0D#402D0D

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

Color values

HEX#402D0D
RGBrgb(64, 45, 13)
HSLhsl(38, 66%, 15%)
HSVhsv(38, 80%, 25%)
CMYKcmyk(0%, 29.7%, 79.7%, 74.9%)
CIE-LABlab(20.03, 4.90, 23.17)
CIE-LCHlch(20.03, 23.68, 78.07°)
OKLaboklab(31.24% 0.0118 0.0524)
OKLCHoklch(31.24% 0.054 77.3)
XYZxyz(3.1256, 2.9961, 0.7944)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D0D #0D2040
analogous
#40130D #402D0D #39400D
triadic
#402D0D #0D402D #2D0D40
tetradic
#402D0D #0D4013 #0D2040 #400D39
square
#402D0D #0D4013 #0D2040 #400D39
split-complementary
#402D0D #0D3940 #130D40
monochromatic
#191205 #191205 #402D0D #735117 #A67522

Accessibility & contrast

On white

13.13
#402D0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402D0D
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D0D#FFFFFF#000000##FFFFFF
##402D0D1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402d0d;
/* rgb */ color: rgb(64, 45, 13);
/* oklch */ color: oklch(31.2% 0.054 77.3);
Tailwind
colors: {
  custom: {
    50: '#77654d',
    500: '#402d0d',
    950: '#000000',
  },
}
SCSS
$custom: #402d0d;
$custom-light: #77654d;
$custom-dark: #000000;
JSON
{
  "hex": "#402d0d",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 13
  },
  "hsl": {
    "h": 37.647,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.31239,
    "c": 0.05376,
    "h": 77.3
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#402D0D
secondary
#2D4A7C
accent
#7EE93F
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D0D

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

Preview Lab → · Contrast checker → · Palette generator →

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