#402D03#402D03

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

Color values

HEX#402D03
RGBrgb(64, 45, 3)
HSLhsl(41, 91%, 13%)
HSVhsv(41, 95%, 25%)
CMYKcmyk(0%, 29.7%, 95.3%, 74.9%)
CIE-LABlab(19.94, 4.32, 27.25)
CIE-LCHlch(19.94, 27.59, 80.99°)
OKLaboklab(31.14% 0.0085 0.0609)
OKLCHoklch(31.14% 0.061 82)
XYZxyz(3.0694, 2.9736, 0.4984)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D03 #031640
analogous
#400E03 #402D03 #344003
triadic
#402D03 #03402D #2D0340
tetradic
#402D03 #03400E #031640 #400334
square
#402D03 #03400E #031640 #400334
split-complementary
#402D03 #033440 #0E0340
monochromatic
#1D1501 #1D1501 #402D03 #7A5606 #B57F08

Accessibility & contrast

On white

13.17
#402D03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#402D03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D03
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D03#FFFFFF#000000##FFFFFF
##402D031.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402d03;
/* rgb */ color: rgb(64, 45, 3);
/* oklch */ color: oklch(31.1% 0.061 82.0);
Tailwind
colors: {
  custom: {
    50: '#786548',
    500: '#402d03',
    950: '#000000',
  },
}
SCSS
$custom: #402d03;
$custom-light: #786548;
$custom-dark: #000000;
JSON
{
  "hex": "#402d03",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 3
  },
  "hsl": {
    "h": 41.311,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.31139,
    "c": 0.06145,
    "h": 82
  },
  "luminance": 0.02973
}

Semantic roles & 50–950 ramp

primary
#402D03
secondary
#1D3C82
accent
#6CFF29
background
#F7F6F4
surface
#EEEBE6
border
#C9C6C2
text
#090501
muted
#7B7A77

Preview Lab

Preview with #402D03

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

Preview Lab → · Contrast checker → · Palette generator →

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