#402F15#402F15

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

Color values

HEX#402F15
RGBrgb(64, 47, 21)
HSLhsl(36, 51%, 17%)
HSVhsv(36, 67%, 25%)
CMYKcmyk(0%, 26.6%, 67.2%, 74.9%)
CIE-LABlab(20.74, 4.19, 19.46)
CIE-LCHlch(20.74, 19.90, 77.83°)
OKLaboklab(31.83% 0.0111 0.0456)
OKLCHoklch(31.83% 0.047 76.3)
XYZxyz(3.2664, 3.1774, 1.1506)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F15 #152640
analogous
#401A15 #402F15 #3C4015
triadic
#402F15 #15402F #2F1540
tetradic
#402F15 #15401A #152640 #40153C
square
#402F15 #15401A #152640 #40153C
split-complementary
#402F15 #153C40 #1A1540
monochromatic
#171108 #171108 #402F15 #6E5124 #9C7333

Accessibility & contrast

On white

12.84
#402F15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#402F15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402F15
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F15#FFFFFF#000000##FFFFFF
##402F151.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352F13
Deuteranopia (green-blind)
#393416
Tritanopia (blue-blind)
#462A29
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f15;
/* rgb */ color: rgb(64, 47, 21);
/* oklch */ color: oklch(31.8% 0.047 76.3);
Tailwind
colors: {
  custom: {
    50: '#776753',
    500: '#402f15',
    950: '#000000',
  },
}
SCSS
$custom: #402f15;
$custom-light: #776753;
$custom-dark: #000000;
JSON
{
  "hex": "#402f15",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 21
  },
  "hsl": {
    "h": 36.279,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.31828,
    "c": 0.04691,
    "h": 76.3
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#402F15
secondary
#395278
accent
#85DA4E
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090602
muted
#7B7A78

Preview Lab

Preview with #402F15

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

Preview Lab → · Contrast checker → · Palette generator →

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