#402804#402804

#402804 is a dark, moderate orange. Relative luminance 0.026; OKLCH L 30.0% C 0.060 H 72.1°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#402804
RGBrgb(64, 40, 4)
HSLhsl(36, 88%, 13%)
HSVhsv(36, 94%, 25%)
CMYKcmyk(0%, 37.5%, 93.8%, 74.9%)
CIE-LABlab(18.44, 7.72, 25.10)
CIE-LCHlch(18.44, 26.26, 72.92°)
OKLaboklab(29.97% 0.0185 0.0572)
OKLCHoklch(29.97% 0.06 72.1)
XYZxyz(2.8953, 2.6166, 0.4674)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402804 #041C40
analogous
#400A04 #402804 #3A4004
triadic
#402804 #044028 #280440
tetradic
#402804 #04400A #041C40 #40043A
square
#402804 #04400A #041C40 #40043A
split-complementary
#402804 #043A40 #0A0440
monochromatic
#1D1202 #1D1202 #402804 #7A4C08 #B3700B

Accessibility & contrast

On white

13.79
#402804 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#402804 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402804
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402804#FFFFFF#000000##FFFFFF
##4028041.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302A00
Deuteranopia (green-blind)
#362F05
Tritanopia (blue-blind)
#472221
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402804;
/* rgb */ color: rgb(64, 40, 4);
/* oklch */ color: oklch(30.0% 0.060 72.1);
Tailwind
colors: {
  custom: {
    50: '#786149',
    500: '#402804',
    950: '#000000',
  },
}
SCSS
$custom: #402804;
$custom-light: #786149;
$custom-dark: #000000;
JSON
{
  "hex": "#402804",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 4
  },
  "hsl": {
    "h": 36,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.29971,
    "c": 0.0601,
    "h": 72.1
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#402804
secondary
#1F4681
accent
#7FFE29
background
#F7F5F4
surface
#EEE9E6
border
#C9C5C2
text
#090501
muted
#7B7977

Preview Lab

Preview with #402804

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

Preview Lab → · Contrast checker → · Palette generator →

#402804 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva