#402E04#402E04

#402E04 is a dark, moderate orange. Relative luminance 0.031; OKLCH L 31.4% C 0.061 H 83.5°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#402E04
RGBrgb(64, 46, 4)
HSLhsl(42, 88%, 13%)
HSVhsv(42, 94%, 25%)
CMYKcmyk(0%, 28.1%, 93.8%, 74.9%)
CIE-LABlab(20.25, 3.71, 27.20)
CIE-LCHlch(20.25, 27.45, 82.23°)
OKLaboklab(31.39% 0.007 0.0606)
OKLCHoklch(31.39% 0.061 83.5)
XYZxyz(3.1135, 3.0530, 0.5401)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E04 #041640
analogous
#401004 #402E04 #344004
triadic
#402E04 #04402E #2E0440
tetradic
#402E04 #044010 #041640 #400434
square
#402E04 #044010 #041640 #400434
split-complementary
#402E04 #043440 #100440
monochromatic
#1D1502 #1D1502 #402E04 #7A5708 #B3810B

Accessibility & contrast

On white

13.04
#402E04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402E04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E04
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E04#FFFFFF#000000##FFFFFF
##402E041.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#362E00
Deuteranopia (green-blind)
#3A3306
Tritanopia (blue-blind)
#462826
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402e04;
/* rgb */ color: rgb(64, 46, 4);
/* oklch */ color: oklch(31.4% 0.061 83.5);
Tailwind
colors: {
  custom: {
    50: '#786649',
    500: '#402e04',
    950: '#000000',
  },
}
SCSS
$custom: #402e04;
$custom-light: #786649;
$custom-dark: #000000;
JSON
{
  "hex": "#402e04",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 4
  },
  "hsl": {
    "h": 42,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.31391,
    "c": 0.06097,
    "h": 83.5
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#402E04
secondary
#1F3C81
accent
#69FE29
background
#F7F6F4
surface
#EEEBE7
border
#C9C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402E04

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

Preview Lab → · Contrast checker → · Palette generator →

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