#402F17#402F17

#402F17 is a dark, muted orange. Relative luminance 0.032; OKLCH L 31.9% C 0.045 H 74.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#402F17
RGBrgb(64, 47, 23)
HSLhsl(35, 47%, 17%)
HSVhsv(35, 64%, 25%)
CMYKcmyk(0%, 26.6%, 64.1%, 74.9%)
CIE-LABlab(20.77, 4.39, 18.25)
CIE-LCHlch(20.77, 18.77, 76.49°)
OKLaboklab(31.86% 0.012 0.0432)
OKLCHoklch(31.86% 0.045 74.5)
XYZxyz(3.2857, 3.1851, 1.2522)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F17 #172840
analogous
#401B17 #402F17 #3D4017
triadic
#402F17 #17402F #2F1740
tetradic
#402F17 #17401B #172840 #40173D
square
#402F17 #17401B #172840 #40173D
split-complementary
#402F17 #173D40 #1B1740
monochromatic
#171108 #171108 #402F17 #6D5027 #9A7137

Accessibility & contrast

On white

12.83
#402F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402F17
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F17#FFFFFF#000000##FFFFFF
##402F171.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353015
Deuteranopia (green-blind)
#393418
Tritanopia (blue-blind)
#462B29
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f17;
/* rgb */ color: rgb(64, 47, 23);
/* oklch */ color: oklch(31.9% 0.045 74.5);
Tailwind
colors: {
  custom: {
    50: '#766754',
    500: '#402f17',
    950: '#000000',
  },
}
SCSS
$custom: #402f17;
$custom-light: #766754;
$custom-dark: #000000;
JSON
{
  "hex": "#402f17",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 23
  },
  "hsl": {
    "h": 35.122,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.31861,
    "c": 0.04483,
    "h": 74.5
  },
  "luminance": 0.03185
}

Semantic roles & 50–950 ramp

primary
#402F17
secondary
#3C5477
accent
#88D751
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090603
muted
#7B7A78

Preview Lab

Preview with #402F17

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

Preview Lab → · Contrast checker → · Palette generator →

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