#402C04#402C04

#402C04 is a dark, moderate orange. Relative luminance 0.029; OKLCH L 30.9% C 0.060 H 79.7°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#402C04
RGBrgb(64, 44, 4)
HSLhsl(40, 88%, 13%)
HSVhsv(40, 94%, 25%)
CMYKcmyk(0%, 31.2%, 93.8%, 74.9%)
CIE-LABlab(19.64, 5.04, 26.50)
CIE-LCHlch(19.64, 26.98, 79.23°)
OKLaboklab(30.91% 0.0108 0.0594)
OKLCHoklch(30.91% 0.06 79.7)
XYZxyz(3.0372, 2.9004, 0.5147)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C04 #041840
analogous
#400E04 #402C04 #364004
triadic
#402C04 #04402C #2C0440
tetradic
#402C04 #04400E #041840 #400436
square
#402C04 #04400E #041840 #400436
split-complementary
#402C04 #043640 #0E0440
monochromatic
#1D1402 #1D1402 #402C04 #7A5408 #B37B0B

Accessibility & contrast

On white

13.29
#402C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#402C04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C04
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C04#FFFFFF#000000##FFFFFF
##402C041.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#342D00
Deuteranopia (green-blind)
#393205
Tritanopia (blue-blind)
#472624
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402c04;
/* rgb */ color: rgb(64, 44, 4);
/* oklch */ color: oklch(30.9% 0.060 79.7);
Tailwind
colors: {
  custom: {
    50: '#786449',
    500: '#402c04',
    950: '#000000',
  },
}
SCSS
$custom: #402c04;
$custom-light: #786449;
$custom-dark: #000000;
JSON
{
  "hex": "#402c04",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 4
  },
  "hsl": {
    "h": 40,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.30909,
    "c": 0.0604,
    "h": 79.7
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#402C04
secondary
#1F3F81
accent
#70FE29
background
#F7F6F4
surface
#EEEBE7
border
#C9C6C3
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402C04

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

Preview Lab → · Contrast checker → · Palette generator →

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