#402F0B#402F0B

#402F0B is a dark, muted orange. Relative luminance 0.031; OKLCH L 31.7% C 0.056 H 82.5°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#402F0B
RGBrgb(64, 47, 11)
HSLhsl(41, 71%, 15%)
HSVhsv(41, 83%, 25%)
CMYKcmyk(0%, 26.6%, 82.8%, 74.9%)
CIE-LABlab(20.62, 3.44, 24.75)
CIE-LCHlch(20.62, 24.98, 82.08°)
OKLaboklab(31.7% 0.0073 0.0555)
OKLCHoklch(31.7% 0.056 82.5)
XYZxyz(3.1915, 3.1474, 0.7560)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F0B #0B1C40
analogous
#40150B #402F0B #37400B
triadic
#402F0B #0B402F #2F0B40
tetradic
#402F0B #0B4015 #0B1C40 #400B37
square
#402F0B #0B4015 #0B1C40 #400B37
split-complementary
#402F0B #0B3740 #150B40
monochromatic
#1A1304 #1A1304 #402F0B #745514 #A87C1D

Accessibility & contrast

On white

12.89
#402F0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402F0B
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F0B#FFFFFF#000000##FFFFFF
##402F0B1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402f0b;
/* rgb */ color: rgb(64, 47, 11);
/* oklch */ color: oklch(31.7% 0.056 82.5);
Tailwind
colors: {
  custom: {
    50: '#77674c',
    500: '#402f0b',
    950: '#000000',
  },
}
SCSS
$custom: #402f0b;
$custom-light: #77674c;
$custom-dark: #000000;
JSON
{
  "hex": "#402f0b",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 11
  },
  "hsl": {
    "h": 40.755,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.317,
    "c": 0.056,
    "h": 82.5
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#402F0B
secondary
#2A457D
accent
#74ED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #402F0B

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

Preview Lab → · Contrast checker → · Palette generator →

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