#402B04#402B04

#402B04 is a dark, moderate orange. Relative luminance 0.028; OKLCH L 30.7% C 0.060 H 77.8°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#402B04
RGBrgb(64, 43, 4)
HSLhsl(39, 88%, 13%)
HSVhsv(39, 94%, 25%)
CMYKcmyk(0%, 32.8%, 93.8%, 74.9%)
CIE-LABlab(19.34, 5.71, 26.15)
CIE-LCHlch(19.34, 26.77, 77.69°)
OKLaboklab(30.67% 0.0127 0.0589)
OKLCHoklch(30.67% 0.06 77.8)
XYZxyz(3.0004, 2.8268, 0.5024)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402B04 #041940
analogous
#400D04 #402B04 #374004
triadic
#402B04 #04402B #2B0440
tetradic
#402B04 #04400D #041940 #400437
square
#402B04 #04400D #041940 #400437
split-complementary
#402B04 #043740 #0D0440
monochromatic
#1D1302 #1D1302 #402B04 #7A5208 #B3780B

Accessibility & contrast

On white

13.42
#402B04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#402B04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402B04
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402B04#FFFFFF#000000##FFFFFF
##402B041.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#332C00
Deuteranopia (green-blind)
#383105
Tritanopia (blue-blind)
#472524
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402b04;
/* rgb */ color: rgb(64, 43, 4);
/* oklch */ color: oklch(30.7% 0.060 77.8);
Tailwind
colors: {
  custom: {
    50: '#786449',
    500: '#402b04',
    950: '#000000',
  },
}
SCSS
$custom: #402b04;
$custom-light: #786449;
$custom-dark: #000000;
JSON
{
  "hex": "#402b04",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 4
  },
  "hsl": {
    "h": 39,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.30671,
    "c": 0.06021,
    "h": 77.8
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#402B04
secondary
#1F4181
accent
#74FE29
background
#F7F5F4
surface
#EEEAE7
border
#C9C6C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #402B04

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

Preview Lab → · Contrast checker → · Palette generator →

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