#40271B#40271B

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

Color values

HEX#40271B
RGBrgb(64, 39, 27)
HSLhsl(19, 41%, 18%)
HSVhsv(19, 58%, 25%)
CMYKcmyk(0%, 39.1%, 57.8%, 74.9%)
CIE-LABlab(18.45, 10.17, 12.75)
CIE-LCHlch(18.45, 16.30, 51.42°)
OKLaboklab(30.08% 0.0298 0.0312)
OKLCHoklch(30.08% 0.043 46.3)
XYZxyz(3.0379, 2.6204, 1.3825)
Luminance0.0262 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40271B #1B3440
analogous
#401B22 #40271B #40391B
triadic
#40271B #1B4027 #271B40
tetradic
#40271B #22401B #1B3440 #391B40
square
#40271B #22401B #1B3440 #391B40
split-complementary
#40271B #1B4039 #1B2240
monochromatic
#160D09 #160D09 #40271B #6B412D #965B3F

Accessibility & contrast

On white

13.78
#40271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#40271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40271B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40271B#FFFFFF#000000##FFFFFF
##40271B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2A1A
Deuteranopia (green-blind)
#342F1B
Tritanopia (blue-blind)
#462324
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40271b;
/* rgb */ color: rgb(64, 39, 27);
/* oklch */ color: oklch(30.1% 0.043 46.3);
Tailwind
colors: {
  custom: {
    50: '#776157',
    500: '#40271b',
    950: '#000000',
  },
}
SCSS
$custom: #40271b;
$custom-light: #776157;
$custom-dark: #000000;
JSON
{
  "hex": "#40271b",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 19.459,
    "s": 40.659,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30083,
    "c": 0.04317,
    "h": 46.3
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#40271B
secondary
#416575
accent
#A9D157
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090503
muted
#7B7978

Preview Lab

Preview with #40271B

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

Preview Lab → · Contrast checker → · Palette generator →

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