#402D04#402D04

#402D04 is a dark, moderate orange. Relative luminance 0.030; OKLCH L 31.1% C 0.061 H 81.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#402D04
RGBrgb(64, 45, 4)
HSLhsl(41, 88%, 13%)
HSVhsv(41, 94%, 25%)
CMYKcmyk(0%, 29.7%, 93.8%, 74.9%)
CIE-LABlab(19.95, 4.38, 26.85)
CIE-LCHlch(19.95, 27.20, 80.74°)
OKLaboklab(31.15% 0.0089 0.06)
OKLCHoklch(31.15% 0.061 81.6)
XYZxyz(3.0749, 2.9758, 0.5273)
Luminance0.0298 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D04 #041740
analogous
#400F04 #402D04 #354004
triadic
#402D04 #04402D #2D0440
tetradic
#402D04 #04400F #041740 #400435
square
#402D04 #04400F #041740 #400435
split-complementary
#402D04 #043540 #0F0440
monochromatic
#1D1402 #1D1402 #402D04 #7A5508 #B37E0B

Accessibility & contrast

On white

13.16
#402D04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#402D04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D04
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D04#FFFFFF#000000##FFFFFF
##402D041.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#352D00
Deuteranopia (green-blind)
#393206
Tritanopia (blue-blind)
#472725
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402d04;
/* rgb */ color: rgb(64, 45, 4);
/* oklch */ color: oklch(31.1% 0.061 81.6);
Tailwind
colors: {
  custom: {
    50: '#786549',
    500: '#402d04',
    950: '#000000',
  },
}
SCSS
$custom: #402d04;
$custom-light: #786549;
$custom-dark: #000000;
JSON
{
  "hex": "#402d04",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 4
  },
  "hsl": {
    "h": 41,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.31149,
    "c": 0.06064,
    "h": 81.6
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#402D04
secondary
#1F3E81
accent
#6DFE29
background
#F7F6F4
surface
#EEEBE7
border
#C9C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D04

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

Preview Lab → · Contrast checker → · Palette generator →

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