#402F0E#402F0E

#402F0E is a dark, muted orange. Relative luminance 0.032; OKLCH L 31.7% C 0.054 H 81.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#402F0E
RGBrgb(64, 47, 14)
HSLhsl(40, 64%, 15%)
HSVhsv(40, 78%, 25%)
CMYKcmyk(0%, 26.6%, 78.1%, 74.9%)
CIE-LABlab(20.65, 3.63, 23.38)
CIE-LCHlch(20.65, 23.66, 81.17°)
OKLaboklab(31.73% 0.0083 0.0529)
OKLCHoklch(31.73% 0.054 81.1)
XYZxyz(3.2103, 3.1550, 0.8553)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F0E #0E1F40
analogous
#40160E #402F0E #38400E
triadic
#402F0E #0E402F #2F0E40
tetradic
#402F0E #0E4016 #0E1F40 #400E38
square
#402F0E #0E4016 #0E1F40 #400E38
split-complementary
#402F0E #0E3840 #160E40
monochromatic
#191205 #191205 #402F0E #725419 #A47924

Accessibility & contrast

On white

12.88
#402F0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402F0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F0E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F0E#FFFFFF#000000##FFFFFF
##402F0E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362F0A
Deuteranopia (green-blind)
#3A330F
Tritanopia (blue-blind)
#462A28
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f0e;
/* rgb */ color: rgb(64, 47, 14);
/* oklch */ color: oklch(31.7% 0.054 81.1);
Tailwind
colors: {
  custom: {
    50: '#77674e',
    500: '#402f0e',
    950: '#000000',
  },
}
SCSS
$custom: #402f0e;
$custom-light: #77674e;
$custom-dark: #000000;
JSON
{
  "hex": "#402f0e",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 14
  },
  "hsl": {
    "h": 39.6,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.31733,
    "c": 0.05355,
    "h": 81.1
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#402F0E
secondary
#2F497B
accent
#79E741
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #402F0E

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

Preview Lab → · Contrast checker → · Palette generator →

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