#402A0C#402A0C

#402A0C is a dark, muted orange. Relative luminance 0.028; OKLCH L 30.5% C 0.054 H 71.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#402A0C
RGBrgb(64, 42, 12)
HSLhsl(35, 68%, 15%)
HSVhsv(35, 81%, 25%)
CMYKcmyk(0%, 34.4%, 81.2%, 74.9%)
CIE-LABlab(19.11, 6.84, 22.58)
CIE-LCHlch(19.11, 23.60, 73.16°)
OKLaboklab(30.52% 0.0174 0.0513)
OKLCHoklch(30.52% 0.054 71.3)
XYZxyz(3.0089, 2.7727, 0.7245)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A0C #0C2240
analogous
#40100C #402A0C #3C400C
triadic
#402A0C #0C402A #2A0C40
tetradic
#402A0C #0C4010 #0C2240 #400C3C
square
#402A0C #0C4010 #0C2240 #400C3C
split-complementary
#402A0C #0C3C40 #100C40
monochromatic
#1A1105 #1A1105 #402A0C #744C16 #A76E1F

Accessibility & contrast

On white

13.51
#402A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#402A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A0C
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A0C#FFFFFF#000000##FFFFFF
##402A0C1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B08
Deuteranopia (green-blind)
#37300D
Tritanopia (blue-blind)
#462524
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #402a0c;
/* rgb */ color: rgb(64, 42, 12);
/* oklch */ color: oklch(30.5% 0.054 71.3);
Tailwind
colors: {
  custom: {
    50: '#78634d',
    500: '#402a0c',
    950: '#000000',
  },
}
SCSS
$custom: #402a0c;
$custom-light: #78634d;
$custom-dark: #000000;
JSON
{
  "hex": "#402a0c",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 12
  },
  "hsl": {
    "h": 34.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.30518,
    "c": 0.05419,
    "h": 71.3
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#402A0C
secondary
#2C4E7C
accent
#86EB3D
background
#F7F5F4
surface
#EDEAE7
border
#C8C6C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #402A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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