#402F11#402F11

#402F11 is a dark, muted orange. Relative luminance 0.032; OKLCH L 31.8% C 0.051 H 79.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#402F11
RGBrgb(64, 47, 17)
HSLhsl(38, 58%, 16%)
HSVhsv(38, 73%, 25%)
CMYKcmyk(0%, 26.6%, 73.4%, 74.9%)
CIE-LABlab(20.69, 3.85, 21.79)
CIE-LCHlch(20.69, 22.12, 79.97°)
OKLaboklab(31.77% 0.0094 0.05)
OKLCHoklch(31.77% 0.051 79.3)
XYZxyz(3.2322, 3.1637, 0.9706)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F11 #112240
analogous
#401711 #402F11 #394011
triadic
#402F11 #11402F #2F1140
tetradic
#402F11 #114017 #112240 #401139
square
#402F11 #114017 #112240 #401139
split-complementary
#402F11 #113940 #171140
monochromatic
#181206 #181206 #402F11 #70531E #A1762B

Accessibility & contrast

On white

12.86
#402F11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402F11
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F11#FFFFFF#000000##FFFFFF
##402F111.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402f11;
/* rgb */ color: rgb(64, 47, 17);
/* oklch */ color: oklch(31.8% 0.051 79.3);
Tailwind
colors: {
  custom: {
    50: '#776750',
    500: '#402f11',
    950: '#000000',
  },
}
SCSS
$custom: #402f11;
$custom-light: #776750;
$custom-dark: #000000;
JSON
{
  "hex": "#402f11",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 17
  },
  "hsl": {
    "h": 38.298,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.3177,
    "c": 0.05084,
    "h": 79.3
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#402F11
secondary
#334D79
accent
#7FE147
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #402F11

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

Preview Lab → · Contrast checker → · Palette generator →

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