#402F18#402F18

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

Color values

HEX#402F18
RGBrgb(64, 47, 24)
HSLhsl(35, 45%, 17%)
HSVhsv(35, 63%, 25%)
CMYKcmyk(0%, 26.6%, 62.5%, 74.9%)
CIE-LABlab(20.79, 4.49, 17.64)
CIE-LCHlch(20.79, 18.20, 75.73°)
OKLaboklab(31.88% 0.0124 0.042)
OKLCHoklch(31.88% 0.044 73.5)
XYZxyz(3.2959, 3.1892, 1.3060)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402F18 #182940
analogous
#401B18 #402F18 #3D4018
triadic
#402F18 #18402F #2F1840
tetradic
#402F18 #18401B #182940 #40183D
square
#402F18 #18401B #182940 #40183D
split-complementary
#402F18 #183D40 #1B1840
monochromatic
#161008 #161008 #402F18 #6D5029 #997039

Accessibility & contrast

On white

12.82
#402F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402F18
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402F18#FFFFFF#000000##FFFFFF
##402F181.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353016
Deuteranopia (green-blind)
#393419
Tritanopia (blue-blind)
#462B2A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402f18;
/* rgb */ color: rgb(64, 47, 24);
/* oklch */ color: oklch(31.9% 0.044 73.5);
Tailwind
colors: {
  custom: {
    50: '#766755',
    500: '#402f18',
    950: '#000000',
  },
}
SCSS
$custom: #402f18;
$custom-light: #766755;
$custom-dark: #000000;
JSON
{
  "hex": "#402f18",
  "rgb": {
    "r": 64,
    "g": 47,
    "b": 24
  },
  "hsl": {
    "h": 34.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.31879,
    "c": 0.04377,
    "h": 73.5
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#402F18
secondary
#3D5677
accent
#8AD553
background
#F7F6F4
surface
#EDEBE8
border
#C8C6C4
text
#090603
muted
#7B7A78

Preview Lab

Preview with #402F18

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

Preview Lab → · Contrast checker → · Palette generator →

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