#40240F#40240F

#40240F is a dark, muted orange. Relative luminance 0.024; OKLCH L 29.2% C 0.054 H 55.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#40240F
RGBrgb(64, 36, 15)
HSLhsl(26, 62%, 15%)
HSVhsv(26, 77%, 25%)
CMYKcmyk(0%, 43.8%, 76.6%, 74.9%)
CIE-LABlab(17.40, 11.05, 19.08)
CIE-LCHlch(17.40, 22.04, 59.92°)
OKLaboklab(29.2% 0.0304 0.0443)
OKLCHoklch(29.2% 0.054 55.5)
XYZxyz(2.8317, 2.3865, 0.7634)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40240F #0F2B40
analogous
#400F13 #40240F #403C0F
triadic
#40240F #0F4024 #240F40
tetradic
#40240F #13400F #0F2B40 #3C0F40
square
#40240F #13400F #0F2B40 #3C0F40
split-complementary
#40240F #0F403C #0F1340
monochromatic
#190E06 #190E06 #40240F #72401B #A35C26

Accessibility & contrast

On white

14.22
#40240F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#40240F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40240F
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40240F#FFFFFF#000000##FFFFFF
##40240F1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C270D
Deuteranopia (green-blind)
#332D0F
Tritanopia (blue-blind)
#471E1F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #40240f;
/* rgb */ color: rgb(64, 36, 15);
/* oklch */ color: oklch(29.2% 0.054 55.5);
Tailwind
colors: {
  custom: {
    50: '#785e4e',
    500: '#40240f',
    950: '#000000',
  },
}
SCSS
$custom: #40240f;
$custom-light: #785e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40240f",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 15
  },
  "hsl": {
    "h": 25.714,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.292,
    "c": 0.05369,
    "h": 55.5
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#40240F
secondary
#305B7A
accent
#A0E543
background
#F7F5F4
surface
#EDE9E7
border
#C8C5C3
text
#090401
muted
#7B7977

Preview Lab

Preview with #40240F

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

Preview Lab → · Contrast checker → · Palette generator →

#40240F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva