#40271E#40271E

#40271E is a dark, muted orange. Relative luminance 0.026; OKLCH L 30.2% C 0.041 H 40.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#40271E
RGBrgb(64, 39, 30)
HSLhsl(16, 36%, 18%)
HSVhsv(16, 53%, 25%)
CMYKcmyk(0%, 39.1%, 53.1%, 74.9%)
CIE-LABlab(18.52, 10.52, 10.79)
CIE-LCHlch(18.52, 15.07, 45.71°)
OKLaboklab(30.15% 0.0313 0.0268)
OKLCHoklch(30.15% 0.041 40.6)
XYZxyz(3.0744, 2.6350, 1.5747)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40271E #1E3740
analogous
#401E26 #40271E #40381E
triadic
#40271E #1E4027 #271E40
tetradic
#40271E #26401E #1E3740 #381E40
square
#40271E #26401E #1E3740 #381E40
split-complementary
#40271E #1E4038 #1E2640
monochromatic
#150D0A #160E0A #40271E #6A4032 #935A45

Accessibility & contrast

On white

13.75
#40271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40271E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40271E#FFFFFF#000000##FFFFFF
##40271E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2A1D
Deuteranopia (green-blind)
#332F1E
Tritanopia (blue-blind)
#462325
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40271e;
/* rgb */ color: rgb(64, 39, 30);
/* oklch */ color: oklch(30.2% 0.041 40.6);
Tailwind
colors: {
  custom: {
    50: '#766159',
    500: '#40271e',
    950: '#000000',
  },
}
SCSS
$custom: #40271e;
$custom-light: #766159;
$custom-dark: #000000;
JSON
{
  "hex": "#40271e",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 15.882,
    "s": 36.17,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30153,
    "c": 0.04123,
    "h": 40.6
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#40271E
secondary
#456874
accent
#AECC5C
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090503
muted
#7B7978

Preview Lab

Preview with #40271E

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

Preview Lab → · Contrast checker → · Palette generator →

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