#40271D#40271D

#40271D is a dark, muted orange. Relative luminance 0.026; OKLCH L 30.1% C 0.042 H 42.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#40271D
RGBrgb(64, 39, 29)
HSLhsl(17, 38%, 18%)
HSVhsv(17, 55%, 25%)
CMYKcmyk(0%, 39.1%, 54.7%, 74.9%)
CIE-LABlab(18.50, 10.40, 11.44)
CIE-LCHlch(18.50, 15.46, 47.73°)
OKLaboklab(30.13% 0.0308 0.0283)
OKLCHoklch(30.13% 0.042 42.5)
XYZxyz(3.0618, 2.6300, 1.5085)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40271D #1D3640
analogous
#401D24 #40271D #40381D
triadic
#40271D #1D4027 #271D40
tetradic
#40271D #24401D #1D3640 #381D40
square
#40271D #24401D #1D3640 #381D40
split-complementary
#40271D #1D4038 #1D2440
monochromatic
#150D0A #160D0A #40271D #6A4130 #945A43

Accessibility & contrast

On white

13.76
#40271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40271D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40271D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40271D#FFFFFF#000000##FFFFFF
##40271D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2A1C
Deuteranopia (green-blind)
#332F1D
Tritanopia (blue-blind)
#462324
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40271d;
/* rgb */ color: rgb(64, 39, 29);
/* oklch */ color: oklch(30.1% 0.042 42.5);
Tailwind
colors: {
  custom: {
    50: '#766159',
    500: '#40271d',
    950: '#000000',
  },
}
SCSS
$custom: #40271d;
$custom-light: #766159;
$custom-dark: #000000;
JSON
{
  "hex": "#40271d",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 17.143,
    "s": 37.634,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30129,
    "c": 0.04184,
    "h": 42.5
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#40271D
secondary
#446775
accent
#ADCE5A
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090503
muted
#7B7978

Preview Lab

Preview with #40271D

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

Preview Lab → · Contrast checker → · Palette generator →

#40271D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva