#40270B#40270B

#40270B is a dark, muted orange. Relative luminance 0.026; OKLCH L 29.8% C 0.055 H 65.5°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#40270B
RGBrgb(64, 39, 11)
HSLhsl(32, 71%, 15%)
HSVhsv(32, 83%, 25%)
CMYKcmyk(0%, 39.1%, 82.8%, 74.9%)
CIE-LABlab(18.21, 8.78, 21.97)
CIE-LCHlch(18.21, 23.66, 68.22°)
OKLaboklab(29.82% 0.0229 0.0503)
OKLCHoklch(29.82% 0.055 65.5)
XYZxyz(2.9005, 2.5655, 0.6590)
Luminance0.0256 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40270B #0B2440
analogous
#400C0B #40270B #3F400B
triadic
#40270B #0B4027 #270B40
tetradic
#40270B #0B400C #0B2440 #400B3F
square
#40270B #0B400C #0B2440 #400B3F
split-complementary
#40270B #0B3F40 #0C0B40
monochromatic
#1A1004 #1A1004 #40270B #744714 #A8671D

Accessibility & contrast

On white

13.88
#40270B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#40270B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40270B
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40270B#FFFFFF#000000##FFFFFF
##40270B1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2908
Deuteranopia (green-blind)
#352F0B
Tritanopia (blue-blind)
#472121
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #40270b;
/* rgb */ color: rgb(64, 39, 11);
/* oklch */ color: oklch(29.8% 0.055 65.5);
Tailwind
colors: {
  custom: {
    50: '#78614c',
    500: '#40270b',
    950: '#000000',
  },
}
SCSS
$custom: #40270b;
$custom-light: #78614c;
$custom-dark: #000000;
JSON
{
  "hex": "#40270b",
  "rgb": {
    "r": 64,
    "g": 39,
    "b": 11
  },
  "hsl": {
    "h": 31.698,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.29816,
    "c": 0.05527,
    "h": 65.5
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#40270B
secondary
#2A517D
accent
#8FED3A
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090501
muted
#7B7977

Preview Lab

Preview with #40270B

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

Preview Lab → · Contrast checker → · Palette generator →

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